-
-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No such transfer po_* #2003
Comments
@patroqueeet Is this a webhook event on your account or on a connected account (yours is a platform account)? |
Plain account. No connected
Arnav Choudhury ***@***.***> schrieb am Fr. 3. Nov. 2023 um
02:02:
… @patroqueeet <https://github.com/patroqueeet> Is this a webhook event on
your account or on a connected account (yours is a platform account)?
—
Reply to this email directly, view it on GitHub
<#2003 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAP2D7RCWYHDB3XKOLE27HDYCQ7DXAVCNFSM6AAAAAA6Y534GWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJRG43DENJRHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@patroqueeet What is your payout destination? And are you able to retrieve it using the stripe api? If so can you share the json? |
@patroqueeet Please go to Django admin and hunt the Event related to this failed event and copy-paste the entire object. You can do so by running the following in django shell as well:
|
@arnav13081994 that is not working, because the event is not saved to the local db because of the error described. |
Please check in the webhook event triggers table for a failed event and then re-run the same command as mentioned below but for the WebhookEventTrigger object |
like that: {
"id": "evt_1O7T7kBBirzkVpobVI9LZcHQ",
"object": "event",
"api_version": "2017-01-27",
"created": 1698801696,
"data": {
"object": {
"id": "po_1O7SohBBirzkVpobNNDVrry3",
"object": "transfer",
"amount": 1,
"amount_reversed": 0,
"application_fee": null,
"arrival_date": 1698796800,
"automatic": true,
"balance_transaction": "txn_1O7SohBBirzkVpobgrc2rTus",
"bank_account": {
"id": "ba_1LX1SjBBirzkVpob7bckjG4y",
"object": "bank_account",
"account_holder_name": null,
"account_holder_type": null,
"account_type": null,
"bank_name": "...",
"country": "DE",
"currency": "eur",
"fingerprint": "2bbLdAFgfBVs1iY3",
"last4": "1234",
"routing_number": "DE...",
"status": "new"
},
"created": 1698800515,
"currency": "eur",
"date": 1698796800,
"description": "STRIPE PAYOUT",
"destination": "ba_1LX1SjBBirzkVpob7bckjG4y",
"failure_balance_transaction": null,
"failure_code": null,
"failure_message": null,
"livemode": true,
"metadata": {
},
"method": "standard",
"original_payout": null,
"recipient": null,
"reconciliation_status": "in_progress",
"reversals": {
"object": "list",
"data": [
],
"has_more": false,
"total_count": 0,
"url": "/v1/transfers/po_1O7SohBBirzkVpobNNDVrry3/reversals"
},
"reversed": false,
"reversed_by": null,
"source_transaction": null,
"source_type": "card",
"statement_descriptor": null,
"status": "in_transit",
"transfer_group": null,
"type": "bank_account"
}
},
"livemode": true,
"pending_webhooks": 2,
"request": null,
"type": "transfer.created"
} |
@patroqueeet This is very interesting. I had no idea one could have a payout object id in a import stripe
stripe.api_key="<YOUR_API_KEY>"
stripe.Payout.retrieve("po_1O7SohBBirzkVpobNNDVrry3")
stripe.Transfer.retrieve("po_1O7SohBBirzkVpobNNDVrry3") |
In [212]: stripe.Payout.retrieve("po_1O7SohBBirzkVpobNNDVrry3")
Out[212]:
<Payout transfer id=po_1O7SohBBirzkVpobNNDVrry3 at 0x7fad94c17a40> JSON: {
"amount": 1,
"amount_reversed": 0,
"application_fee": null,
"arrival_date": 1698796800,
"automatic": true,
"balance_transaction": "txn_1O7SohBBirzkVpobgrc2rTus",
"bank_account": {
"account_holder_name": null,
"account_holder_type": null,
"account_type": null,
"bank_name": "...",
"country": "DE",
"currency": "eur",
"fingerprint": "...",
"id": "ba_1LX1SjBBirzkVpob7bckjG4y",
"last4": "...",
"object": "bank_account",
"routing_number": "...",
"status": "new"
},
"created": 1698800515,
"currency": "eur",
"date": 1698796800,
"description": "STRIPE PAYOUT",
"destination": "ba_1LX1SjBBirzkVpob7bckjG4y",
"failure_balance_transaction": null,
"failure_code": null,
"failure_message": null,
"id": "po_1O7SohBBirzkVpobNNDVrry3",
"livemode": true,
"metadata": {},
"method": "standard",
"object": "transfer",
"original_payout": null,
"recipient": null,
"reconciliation_status": "completed",
"reversals": {
"data": [],
"has_more": false,
"object": "list",
"total_count": 0,
"url": "/v1/transfers/po_1O7SohBBirzkVpobNNDVrry3/reversals"
},
"reversed": false,
"reversed_by": null,
"source_transaction": null,
"source_type": "card",
"statement_descriptor": null,
"status": "paid",
"transfer_group": null,
"type": "bank_account"
} and In [213]: stripe.Transfer.retrieve("po_1O7SohBBirzkVpobNNDVrry3")
<Transfer transfer id=po_1O7SohBBirzkVpobNNDVrry3 at 0x7fada425a130> JSON: {
"amount": 1,
"amount_reversed": 0,
"application_fee": null,
"arrival_date": 1698796800,
"automatic": true,
"balance_transaction": "txn_1O7SohBBirzkVpobgrc2rTus",
"bank_account": {
"account_holder_name": null,
"account_holder_type": null,
"account_type": null,
"bank_name": "...",
"country": "DE",
"currency": "eur",
"fingerprint": "...",
"id": "ba_1LX1SjBBirzkVpob7bckjG4y",
"last4": "...",
"object": "bank_account",
"routing_number": "...",
"status": "new"
},
"created": 1698800515,
"currency": "eur",
"date": 1698796800,
"description": "STRIPE PAYOUT",
"destination": "ba_1LX1SjBBirzkVpob7bckjG4y",
"failure_balance_transaction": null,
"failure_code": null,
"failure_message": null,
"id": "po_1O7SohBBirzkVpobNNDVrry3",
"livemode": true,
"metadata": {},
"method": "standard",
"object": "transfer",
"original_payout": null,
"recipient": null,
"reconciliation_status": "completed",
"reversals": {
"data": [],
"has_more": false,
"object": "list",
"total_count": 0,
"url": "/v1/transfers/po_1O7SohBBirzkVpobNNDVrry3/reversals"
},
"reversed": false,
"reversed_by": null,
"source_transaction": null,
"source_type": "card",
"statement_descriptor": null,
"status": "paid",
"transfer_group": null,
"type": "bank_account"
} |
@patroqueeet I do not understand how you got a response for Moreover looking at the JSON the fields are all from the Payout Object even when |
Indeed I see your point. Still, the symptoms are as they are. Anything I can do to narrow down the source of the symptoms? |
I see that you are using sentry. Can you tell me what all params are being passed to the api_retrieve call and what is Also on this Stripe Account your api version is |
Thanks. @patroqueeet Can you run |
@patroqueeet Please check the |
now I did after finding api version was empty.
But also found that inside Stripe each WH has an api version assigned. this is set to default 2017* in my case. so now my local model is not aligned with stripe :/ . trying to adjust to 2020* api version in Stripe is not possible, I can only select default or lastest version - will find out what it does now on Dec, 1st... THX for instantly creating a PR to prevent similar in the future and THX for the great support. was a tricky issue, I assume... |
Describe the bug
Every months first day, on web hook call I receive this exception:
Software versions
The text was updated successfully, but these errors were encountered: