GET
/
v2.01
/
{ClientId}
/
users
/
{UserId}
/
kyc
/
ubodeclarations
<?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 = '170853400';

    $response = $api->UboDeclarations->GetAll($userId);

    print_r($response);
} catch(MGPResponseException $e) {
    print_r($e);
} catch(MGPException $e) {
    print_r($e);
}  
[
    {
        "Id": "158947737",
        "UserId": "158947634",
        "CreationDate": 1672153298,
        "ProcessedDate": null,
        "Status": "CREATED",
        "Reason": null,
        "Message": null,
        "Ubos": [
            {
                "Id": "158947898",
                "CreationDate": 1672153693,
                "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
            }
        ]
    }
]  

Read more about the UBO Declaration object →

Query parameters

page
integer

Start value: 1

Default value: 1

Indicates the index of the page for the pagination.

per_page
integer

Max. value: 100

Default value: 10

Indicates the number of items returned for each page of the pagination.

Sort
string

Allowed values: CreationDate:ASC, CreationDate:DESC

Indicates the direction in which to sort the list.

Path parameters

UserId
string
required

The unique identifier of the user.

Responses

[
    {
        "Id": "158947737",
        "UserId": "158947634",
        "CreationDate": 1672153298,
        "ProcessedDate": null,
        "Status": "CREATED",
        "Reason": null,
        "Message": null,
        "Ubos": [
            {
                "Id": "158947898",
                "CreationDate": 1672153693,
                "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
            }
        ]
    }
]  
<?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 = '170853400';

    $response = $api->UboDeclarations->GetAll($userId);

    print_r($response);
} catch(MGPResponseException $e) {
    print_r($e);
} catch(MGPException $e) {
    print_r($e);
}