#bilala1122

1 messages · Page 1 of 1 (latest)

merry kernelBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

unkempt dirge
#

Hi, let me help you with this.

#

Yes, that's a known limitation. Could you please share an example Balance Transaction ID?

strange parcel
#

Ids are visible in screenshot

unkempt dirge
#

Could you please just copy and paste it here? Sometimes if we use text recognition it makes mistakes.

strange parcel
unkempt dirge
#

You can copy the description/metadata after a PaymentIntent is succeeded on your Platform to the corresponding Transfer objects.

strange parcel
#

Can you elaborate?

unkempt dirge
#

Basically, when you create payments on your Platform, you can take the description from the original PaymentIntent, and copy it to your Transfers to the Connected account. This way you will see the description when listing transactions on your Connected account.

strange parcel
#

Can you see this screenshot. It is already there.

#

BTW I am using listing balanceTransactions as you can see in the code snippet.

unkempt dirge
#

But when you expand the source the description is not there? I also don't see it being expanded correctly.

strange parcel
#

I had undone the expand. Previously the code looked like this:
const transactionsDetail = await stripe.balanceTransactions.list(
{
expand: ["data.source"],
},
{
stripeAccount: driver.stripeAccount,
}
);

Yeah the description is null in source when expanded

merry kernelBOT
lusty coyote
#

I'm gonna guess you're using manual payouts?

strange parcel
#

I am using manuls payouts. Also, I am using separate charges and transfers.

lusty coyote
#

That's likely why there's no description set

strange parcel
#

Let me tell you one thing

#

Description appears only for payouts and no other type of transaction, infact.

lusty coyote
#

Yup, expected as I just described

strange parcel
#

What's the solution?

lusty coyote
#

You need to implement your own solution to track balance activity in relation to payouts

strange parcel
#

But the description is present as we can see in the dashboard. The API is not returning it .

lusty coyote
#

That's a downside of using manual payouts. The balance transactions, which are what are included in a payout, aren't tracked against their associated payments. As such they've no data from them

strange parcel
#

But expanding the source should provide info. But it is not even.

lusty coyote
#

On which txn_xxx specifically do you epxect to see description field?

strange parcel
#

on second and third object

#

{
"id": "txn_1OInOSGbqdcJN4nBt3kGpQJH",
"object": "balance_transaction",
"amount": -65,
"available_on": 1701501220,
"created": 1701501220,
"currency": "usd",
"description": null,
"exchange_rate": null,
"fee": 0,
"fee_details": [],
"net": -65,
"reporting_category": "transfer",
"source": {
"id": "tr_1OInOSGbqdcJN4nBFUYj8c2L",
"object": "transfer",
"amount": 65,
"amount_reversed": 0,
"balance_transaction": "txn_1OInOSGbqdcJN4nBt3kGpQJH",
"created": 1701501220,
"currency": "usd",
"description": null,
"destination": "acct_1LXTkDKBAC0irgqG",
"destination_payment": "py_1OInOSKBAC0irgqGHpEHVyRR",
"livemode": false,
"metadata": {},
"reversals": {
"object": "list",
"data": [],
"has_more": false,
"total_count": 0,
"url": "/v1/transfers/tr_1OInOSGbqdcJN4nBFUYj8c2L/reversals"
},
"reversed": false,
"source_transaction": null,
"source_type": "card",
"transfer_group": null
},
"status": "available",
"type": "transfer"
}

lusty coyote
#

Paste the txn_xxx IDs please, I don't need the full hash

strange parcel
#

as you can see in stripe dashboard, the second one has this description:

#

"txn_1OInOSGbqdcJN4nBt3kGpQJH"

lusty coyote
#

Yep, but, as I've stated a few times now, if you use manual payouts then the activity tracking/history is not available via the API

#

As such, those description fields aren't included

strange parcel
#

tbh, I don't get your logic. Everything is listed there, price, created on, available on etc.