#Jeff Jin-postman
1 messages ยท Page 1 of 1 (latest)
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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?
I'm working on setting up a test to double check, and will confirm shortly.
thanks
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]
You're making a GET request there, and need to toggle the method to POST.
oops
(I did the exact same thing initially ๐ )
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hm, that seems to be working for me. Do you have any leading or trailing whitespace in the provided values?