#wunsunnn_api
1 messages ¡ Page 1 of 1 (latest)
đ 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.
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?
Hi there, so you want to retrieve the the list of charge associated with this payout po_1Pk9fYLDw5Ft4RdtOr9P7Gsn ?
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
Got it. you can use this API https://docs.stripe.com/api/balance_transactions/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Specify the payout ID and set type to charge
Ok, is there a way to pass on information from creating a session to the transaction? via metadata or description?
https://docs.stripe.com/api/checkout/sessions/create?lang=node#create_checkout_session-payment_intent_data-metadata yes you can specify a metadata on PaymentIntent when creating a checkout session.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Does that persist through charge then transaction?
The metadata will be set on the PaymentIntent object that the checkout session creates