<?php require_once 'vendor/autoload.php'; use MangoPay\MangoPayApi; use MangoPay\Libraries\ResponseException as MGPResponseException; use MangoPay\Libraries\Exception as MGPException; $api = new MangoPayApi(); $api->Config->ClientId = 'your-client-id'; $api->Config->ClientPassword = 'your-api-key'; $api->Config->TemporaryFolder = 'tmp/'; try { $userId = '198557165'; $uboDeclarationId = '198692872'; $uboId = '198693429'; $response = $api->UboDeclarations->GetUbo($userId, $uboDeclarationId, $uboId); print_r($response); } catch(MGPResponseException $e) { print_r($e); } catch(MGPException $e) { print_r($e); }
{ "Id": "ubo_m_01JH7TS5ZHW3R501ACJEKD5G39", "CreationDate": 1736503498, "LastName": "Wiza", "FirstName": "Jess", "Birthday": 652117514, "Nationality": "FR", "Address": { "AddressLine1": "669 Ratke Forge", "AddressLine2": "Schamberger Walk", "City": "Paris", "Region": "Île-de-France", "PostalCode": "75001", "Country": "FR" }, "Birthplace": { "City": "Paris", "Country": "FR" }, "IsActive": true }
200
Show properties
Country
false
Was this page helpful?