#nier_disputes-webhooks

1 messages ยท Page 1 of 1 (latest)

pine laurelBOT
#

๐Ÿ‘‹ 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/1441156583408271542

๐Ÿ“ 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.

torn leaf
#

Another question, can we have a webhook both for platform (non connect) and connect accounts?

#

Or I would need to create 2 webhooks and use 2 webhook secrets

foggy haven
#

Hi ๐Ÿ‘‹

You can use the Update API and the evidence parameter

#

can we have a webhook both for platform (non connect) and connect accounts?

This requires creating to Webhook Endpoints in Stripe. But you can have both Endpoints route to the same URL if that makes sense for your integration.

torn leaf
#

both do I need two webhook secrets?

foggy haven
#

Yes

torn leaf
#

How would I know which webhook secret to use though? If both webhooks are the same

foggy haven
#

In the Event object there is an account property that will only have a value if the Event is from a Connected Account

torn leaf
#

@foggy haven about my first question,

#

I'm talking about submiting, now adding evidence

#

I set submit: false, to my endpoint but it stills sbumits

return stripe.disputes.update(
disputeId,
{
evidence: evidencePayload,
submit: false,
},
);

foggy haven
#

Can you share an example?

pine laurelBOT
#

nier_disputes-webhooks

torn leaf
#

yes

foggy haven
#

I cannot use dashboard links. Please just share the object ID at the end.

torn leaf
#

du_1SVeaLRi2Bu2eFG4e1GQbiQ0 ?

#

what object id do you need

foggy haven
#

Okay that's the dispute id

torn leaf
#

yes

pine laurelBOT
torn leaf
#

do you need anything else?

foggy haven
#

Can you share the request ID for the request where you provided the prarameters you listed above?

torn leaf
#

Do we have the request ID in the dashboard? I can only see the payment and dispute id

foggy haven
torn leaf
#

great

foggy haven
#

I don't see submit: false though

torn leaf
#

let me try logging the response from the api

foggy haven
#

It's not the response. Your request did not provide the submit parameter. You can see it's not in the request body

#

And in our docs we call out this defaults to true

Whether to immediately submit evidence to the bank. If false, evidence is staged on the dispute. Staged evidence is visible in the API and Dashboard, and can be submitted to the bank by making another request with this attribute set to true (the default).

torn leaf
#

yes but as I said,
await stripe.disputes.update(
disputeId,
{
evidence: evidencePayload,
submit: false,
metadata: {
ots_automated_evidence: 'true',
ots_evidence_updated_at: new Date().toISOString(),
},
},

submit is set to false here

#

is this the wrong way to set submit as false?

dull geode
#

Hi there ๐Ÿ‘‹ jumping in as my teammate needed to step away. Nope that doesn't look like it's the wrong way.