#renerich_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/1493542941619126325
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
Hi soma
hum... I don't see the field debit_agreement in the API reference here: https://docs.stripe.com/api/external_account_bank_accounts/object.
I managed to find it, it's indeed a non-public feature.
and it looks like you don't have access to that feature
Backstory: We had accounts that were going negative and stripe would not recover funds from those accounts; digging deeper we saw that mandates had expired; but none of our accounts had been informed of the expiration/renewal by Stripe.
We want to build a reminder for our accounts to renew the mandate based on the debit_agreement.
Is there any other way to check if the mandate for the sepa debit has expired without using these debit_agreement fields?
and how did you discover that debit_agreement existed?
We opened the workbench to see if we could find out what was wrong with our connect accounts; what had changed; since the month before everything seemed fine. the field IS displayed in the workbench (dashboard.stripe.com)
got it, it shouldn't be available there since it's a non-public feature.
I would recommend to reach out to Stripe support, and telling them you are aware of the debit_agreement parameter, you know it's a gated feature, and you'd like to request access.
Oke, I will do that. Can you suggest if there is another avenue to check expiring mandates?
can you share a specific external account ID (ba_xxx) where the mandate expired, so I can have a look?
ba1TF84xFo(redacted) This is one from our test account where the mandate is still active; I will check the expiring accounts one moment...
ba1T7BJ22E7k(redacted)This one expired
The expired one is from the live (non-test) account
thanks! and how did you notice that the mandate expired on this one?
O, sorry, i sent you the wrong one. We informed the customer of that account already; seems he already updated his banking info.
ba1JWPaR2Hq(redacted) this one is still expired. I will get a json of the output for you
"debit_agreement": {
"accepted_at": 1630864618,
"expires_at": 1760773118,
"ip": "83.128.X.X",
"reference":"ba1JWPaR2H(redacted)",
"status": "canceled",
"url": "https://stripe.com/sources/payouts_sepa_mandate?reference=ba1JWPaR2H(redacted)&secret=XXX",
"user_agent": "Mozilla/5.0 XXX",
},
This json is visible when opening the bank account information in the workbench. That is how we noticed that the agreement expired
Expires at Saturday, October 18, 2025 at 7:38:38 AM
got it, thanks! I don't see another way to get that information, except to actually wait for a payout or debit to fail. so asking to get access to the debit_agreement seems like the best option.
Alright. I will contact Stripe Support. Thank you for your time you were most helpful