#wunsunnn_api

1 messages ¡ Page 1 of 1 (latest)

timber bridgeBOT
#

👋 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/1269872266418720830

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

modest magnet
#

So on the payout object, there's only one transaction, and that transaction just loops back to the payout id at the source

#
{
    "id": "txn_1Pk9fZLDw5Ft4RdthbefCznU",
    "object": "balance_transaction",
    "amount": -11839,
    "available_on": 1722798040,
    "created": 1722798040,
    "currency": "aud",
    "description": "STRIPE PAYOUT",
    "exchange_rate": null,
    "fee": 0,
    "fee_details": [],
    "net": -11839,
    "reporting_category": "payout",
    "source": "po_1Pk9fYLDw5Ft4RdtOr9P7Gsn",
    "status": "available",
    "type": "payout"
}
#

How can I get to the charges?

#

Also, on the dashboard it seems like you can have multiple transactions:

But i'm not seeing a list, does that mean 1 payout per charge?

rain latch
#

Hi there, so you want to retrieve the the list of charge associated with this payout po_1Pk9fYLDw5Ft4RdtOr9P7Gsn ?

modest magnet
#

yes

#

although this payout only has one single charge

#

I want to be able to refer to my own orderId in my own database from payout

rain latch
#

Specify the payout ID and set type to charge

modest magnet
#

Ok, is there a way to pass on information from creating a session to the transaction? via metadata or description?

rain latch
modest magnet
#

Does that persist through charge then transaction?

rain latch
#

The metadata will be set on the PaymentIntent object that the checkout session creates

modest magnet
#

And I just reverse search for the paymentIntent metadata from payouts

#

{{baseUrl}}/v1/balance_transactions?expand[0]=data.source&expand[1]=data.source.payment_intent&payout={payout_id}&type=charge I'll put this here just in case people search for how to reconcile payouts