#Jeff Jin-postman

1 messages ยท Page 1 of 1 (latest)

magic pumice
#

Hi ๐Ÿ‘‹ what parts have you been able to piece together so far?

You can find the URL in the API spec, though you'll need to update it to contain the correct account ID:
https://stripe.com/docs/api/accounts/update?lang=curl

For auth, you'll set it to Basic Auth and provide your API key in the username field.

The body should use the x-www-form-encoded option

misty tundra
#

HI, @magic pumice thank you for your reply.

#

I want to know how to set the body.

#

{
"settings.payouts.schedule.interval": "weekly"
}

#

is this right?

magic pumice
#

I'm working on setting up a test to double check, and will confirm shortly.

misty tundra
#

thanks

magic pumice
#

Thanks for your patience, found that for nested parameters you'll want to use square brackets rather than dots. So the interval parameter would be:
settings[payouts][schedule][interval]

misty tundra
#

but i got this error

magic pumice
#

You're making a GET request there, and need to toggle the method to POST.

misty tundra
#

oops

magic pumice
#

(I did the exact same thing initially ๐Ÿ˜‚ )

misty tundra
#

almost done

#

but what is this issue?

magic pumice
#

That's saying that if you're updating the payout schedule to a weekly frequency, then you need to tell us where in the week those payouts should occur by providing the weekly_anchor parameter:
https://stripe.com/docs/api/accounts/update?lang=curl#update_account-settings-payouts-schedule-weekly_anchor

misty tundra
#

i have added weekly anchor but get this issue

#

@magic pumice

magic pumice
#

Hm, that seems to be working for me. Do you have any leading or trailing whitespace in the provided values?

misty tundra
#

let me check

#

thank you for your help

#

it is working