#john_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/1341879151744913539
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- john_connect-multiple-bank-accounts, 6 days ago, 33 messages
Hello there
You need to retrieve the Verification Session and expand the last_verification_report: https://docs.stripe.com/api/identity/verification_sessions/object#identity_verification_session_object-last_verification_report
Ah sorry, you are saying you are using the Retrieve VerificationReport endpoint using that Verification Report ID but then the response is null?
I am not using any endpoints, rather processing the webhook event.
VerificationReport theVerificationReport = verificationSession.getLastVerificationReportObject();
VerificationSession.VerifiedOutputs theVerifiedOutputs = verificationSession.getVerifiedOutputs();
both of the above calls returns NULL
however, the last verification report id is present:
"last_verification_report": "vr_1Qu4RN2LjNH6sc0XN29QFaBI",
Hmm that's strange...
yes
here is the webhoook event id, if you can find anything more:
"id": "evt_1Qu4RO2LjNH6sc0XnbUKKkdc",
Yeah no I clearly see the last_verification_report present in that Event
Can you show me how you initialize verificationSession?
Oh
Wait
It is getLastVerificationReport()
You are doing getLastVerificationReportObject();
VerificationReport theVerificationReport = verificationSession.getLastVerificationReportObject();
this is what I am doing
I want the object as it has necessary data
getLastVerificationReport() gives the id of the object.
You need to expand to get the full object
how do I do that?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
but, I am processing the webhook event. I am not querying or retrieving
You either need to make a separate request to retrieve the Verification Report, or you retrieve the Verification Session and expand last_verification_report
Right, you have to make a separate request when you receive the Webhook
Webhooks will never contain expanded properties
That's just how it works.
It is common for an integration to receive a Webhook and then retrieve that same object and expand relevant properties that you care about.
I see.
so, I can get VerificationReport by querying using its ID.
how about VerificationSession.VerifiedOutputs? how do I get that?
Same thing (note the expandable tag in the API Reference: https://docs.stripe.com/api/identity/verification_sessions/object?lang=java#identity_verification_session_object-verified_outputs )
So really you should just retrieve the Verification Session and expand both the last_verification_report and verified_outputs.
You can see more info about how expansion works in: https://stripe.com/docs/expand
got it.
so, on receiving the webhook.
use the verificationSession id on the webhook event to query the VerificationSession object and use expansion parameters in the retrieval query
is that correct?
Yep exactly
thank you @timber moat