#sapient_api

1 messages ¡ Page 1 of 1 (latest)

lethal elbowBOT
#

👋 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/1285091030395518996

📝 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.

slim idol
#

Hi there, I don't quite what you wish to achieve, can you rephrase the question?

round delta
#

i have used this code
const account = await stripe.accounts.create({
type: "express",
metadata: {
daycare_name: daycareName,
email: email,
},
});

    const accountLink = await stripe.accountLinks.create({
      account: account?.id,
      refresh_url: "https://example.com/reauth",
      return_url: "https://example.com/return",
      type: "account_onboarding",
    });

when user click on the lick which is given by accountLink that time i call the webhook so plz tell me which event is put in the webhook

slim idol
#

What type of webhook?

#

Or are you asking for a sample response of account link creation?

round delta
#

i have already craeted account link

#

when user is click on this link that time i want to call webhook so which event is called ??

slim idol
#

No, there is no webhook event to notify you when your customer opens an account link

#

But you can listen to account.updated event to get notified when you cusotmer updates their details through account link

round delta
#

i have put this event but webhook is not call

slim idol
#

As I explained earlier. there is no webhook event to notify you when your customer opens an account link

round delta
#

so when user open this link and fill up the their details that time no any event occur right ??

slim idol
#

you can listen to account.updated event to get notified when you cusotmer updates their details through account link

round delta
#

ohk thanks