#ezvibes - Express
1 messages · Page 1 of 1 (latest)
Hi 👋
Unfortunately you cannot expand the person object in the webhook request directly.
However does it interfere with other parts of your integration if you include the name in the business_profile.name property?
Hey Snufkin thanks for the response. Right now our use case is all "individuals" so i hadn't considering using the business_profile. would that still be an option?
The property still exists on the Account object. If you aren't currently using it for anything else you can put the name there. The only concern would be if you chose to start using that property to mean something else.
yes that make sense but it won't be set by the user during the onboarding flow. I'm just trying access the data that they already provided in the most efficient way. i guess another option would be to prefill the business_profile.name on account creation?
That could work, or you could have some logic in your account.updated webhook handler to get the Person object if the business_profile.name property is null. Then you add the API call only the first time.
yeah i think i will need an API call to get the person. when im attempting to make the call the accounts/::d/persons endpoint i get the following error
{
"error": {
"code": "oauth_not_supported",
"message": "This application does not have the required permissions for this endpoint on account 'acct_1L5WRF2EM6OOv2hw'.",
"type": "invalid_request_error"
}
}
any idea why that is the case?
Do you have a request ID for this failed request?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request