#vell_2x

1 messages · Page 1 of 1 (latest)

round umbraBOT
#

Hello! We'll be with you shortly. 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.

lime parcel
#

Hello, how can I help?

rigid bay
#

Hello I am trying to create a Connect account, but I am getting unexpected results.

#

const account = await stripe.accounts.create({
type: 'express',
email: req.body.email,
business_type: 'company',
capabilities: {
transfers: 'active',
},
metadata: {
'proid': req.body.proid,
},
settings: {
payouts: {
"schedule": {
"delay_days": 2,
"interval": "friday",
},
},
},
});

lime parcel
#

And also tell me what result do you expect?

rigid bay
#

req_fa73ReF6FhCzfQ

#

I was exspecting the account.id be saved to DB but instead I got HTML code

lime parcel
#

The request wasn't successful, you can check to log to see why it failed.

rigid bay
#

400 err

#

capabilities: {
transfers: 'active',
},
settings: {
payouts: {
"schedule": {
"delay_days": 2,
"interval": "friday",
},
},
},

#

^^ added the following fields

#

Worked before adding

lime parcel
#

for example:

capabilities: {
  transfers: {
    requested: true
  }
}
rigid bay
#

Ok. does the settings portion look good?