#anthonyl5602
1 messages · Page 1 of 1 (latest)
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.
- anthonyl5602, 8 minutes ago, 37 messages
Hello
To get to the Customer from a Balance Transaction you want to expand the Balance Transaction's source: https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-source
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
That will provide you the Charge that generated the Balance Transaction, which will then indicate the Customer
i dont't have a customer 😦
{
"id": "txn_1OS9V4QtTmXciW6yMNBHcmGh",
"object": "balance_transaction",
"amount": -9000,
"available_on": 1704153600,
"created": 1703731150,
"currency": "eur",
"description": "STRIPE PAYOUT",
"exchange_rate": null,
"fee": 0,
"fee_details": [],
"net": -9000,
"reporting_category": "payout",
"source": {
"id": "po_1OS9V4QtTmXciW6yqHteZZt7",
"object": "payout",
"amount": 9000,
"arrival_date": 1704153600,
"automatic": true,
"balance_transaction": "txn_1OS9V4QtTmXciW6yMNBHcmGh",
"created": 1703731150,
"currency": "eur",
"description": "STRIPE PAYOUT",
"destination": "ba_1NYtGWQtTmXciW6ycgI4t6a8",
"failure_balance_transaction": null,
"failure_code": null,
"failure_message": null,
"livemode": true,
"metadata": {},
"method": "standard",
"original_payout": null,
"reconciliation_status": "completed",
"reversed_by": null,
"source_type": "card",
"statement_descriptor": "Mon Hangar SAS",
"status": "paid",
"type": "bank_account"
},
"status": "available",
"type": "payout"
}
Oh well yeah that is a Payout
So there is no Customer for a Payout as a Customer would only be related to a Charge
If you want to know information about the Balance Transactions that make up that Payout then you need to list the Balance Transactions for the Payout itself
of a payout it is not possible to trace the transfers? After the transfers I can find the origin of the transfers to the customer who paid at the start of the transaction...
that's to say ?
You would use https://stripe.com/docs/api/balance_transactions/list#balance_transaction_list-payout to list the Balance Transactions for that specific Payout
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Then you can look at the source for those Balance Transactions to see the Charge and thus the Customer
{
"object": "list",
"data": [
{
"id": "txn_1OXHcOQtTmXciW6yKnS7hin9",
"object": "balance_transaction",
"amount": -9000,
"available_on": 1705363200,
"created": 1704953995,
"currency": "eur",
"description": "STRIPE PAYOUT",
"exchange_rate": null,
"fee": 0,
"fee_details": [],
"net": -9000,
"reporting_category": "payout",
"source": "po_1OXHcNQtTmXciW6ynOMIIvgo",
"status": "pending",
"type": "payout"
},
{
"id": "txn_1OX24kQtTmXciW6yn2SyN3Ss",
"object": "balance_transaction",
"amount": 9000,
"available_on": 1704894250,
"created": 1704894250,
"currency": "eur",
"description": null,
"exchange_rate": null,
"fee": 0,
"fee_details": [],
"net": 9000,
"reporting_category": "charge",
"source": "py_1OX24kQtTmXciW6yHfGwPMCK",
"status": "available",
"type": "payment"
}]}
I don't have like the example, and the same if I put an id in the url...
{
"id": "txn_1OXHcOQtTmXciW6yKnS7hin9",
"object": "balance_transaction",
"amount": -9000,
"available_on": 1705363200,
"created": 1704953995,
"currency": "eur",
"description": "STRIPE PAYOUT",
"exchange_rate": null,
"fee": 0,
"fee_details": [],
"net": -9000,
"reporting_category": "payout",
"source": "po_1OXHcNQtTmXciW6ynOMIIvgo",
"status": "pending",
"type": "payout"
}
So when you list, try expanding data.source.source_transfer
it's ok ! thanks you