#costia-connect
1 messages ยท Page 1 of 1 (latest)
so data[0].personId, // person token id can't be right. You need a person_xxx ID , maybe by checking https://stripe.com/docs/api/persons/list or you store it in your database somewhere
okay if i do this
const persons = await stripe.accounts.listPersons(
data[0].stripeID,
{limit: 1}
);
and then I store person.data.id will work ?
sure, if the account has one Person!
I have a question about relationship representative is that a boolean ?
https://stripe.com/docs/api/persons/update#update_person-relationship-representative
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
and the smae for owner
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.