Closed PeeyushAgrawal closed 2 years ago
As mentioned - https://github.com/Mangopay/mangopay2-php-sdk/blob/3.10.0/MangoPay/ApiUboDeclarations.php#L80 this is a function which is using ubo id, user id and ubo declaration id to get the ubo details. Here ubo_get is used.
There is no function which can return the list of ubo by using ubo declaration id and user id (like https://github.com/Mangopay/mangopay2-php-sdk/blob/3.10.0/MangoPay/ApiUboDeclarations.php#L20 here all ubo declaration is getting return using user id only).
Hello @PeeyushAgrawalWebkul , this is currently not available in the API.
A user can have only one UBO in a UBO Declaration. Do you want to list all UBOs in a UBO Declaration ?
As mentioned - https://github.com/Mangopay/mangopay2-php-sdk/blob/3.10.0/MangoPay/ApiUboDeclarations.php#L80 this is a function which is using ubo id, user id and ubo declaration id to get the ubo details. Here ubo_get is used.
There is no function which can return the list of ubo by using ubo declaration id and user id (like https://github.com/Mangopay/mangopay2-php-sdk/blob/3.10.0/MangoPay/ApiUboDeclarations.php#L20 here all ubo declaration is getting return using user id only).