{
"UserCategory": "PAYER",
"TermsAndConditionsAccepted": false,
"LegalPersonType": "SOLETRADER",
"Name": "Alex Smith",
"Email": "alex.smith.services@example.com",
"LegalRepresentative": {
"FirstName": "Alex",
"LastName": "Smith",
"PhoneNumber": "0611111111",
"PhoneNumberCountry": "FR"
},
"LegalRepresentativeAddress": {
"AddressLine1": "3 rue de la Cité",
"AddressLine2": "Appartement 7",
"City": "Paris",
"Region": "Île-de-France",
"PostalCode": "75004",
"Country": "FR"
},
"Tag": "Created using the Mangopay API Postman collection"
}
{
"UserCategory": "OWNER",
"TermsAndConditionsAccepted": true,
"LegalPersonType": "SOLETRADER",
"Name": "Alex Smith",
"Email": "alex.smith.services@example.com",
"LegalRepresentative": {
"FirstName": "Alex",
"LastName": "Smith",
"Birthday": 652117514,
"Nationality": "FR",
"CountryOfResidence": "FR",
"Email": "alex.smith@example.com",
"PhoneNumber": "0611111111",
"PhoneNumberCountry": "FR"
},
"CompanyNumber": "123456789",
"HeadquartersAddress": {
"AddressLine1": "3 rue de la Cité",
"AddressLine2": "Appartement 7",
"City": "Paris",
"Region": "Île-de-France",
"PostalCode": "75004",
"Country": "FR"
},
"LegalRepresentativeAddress": {
"AddressLine1": "3 rue de la Cité",
"AddressLine2": "Appartement 7",
"City": "Paris",
"Region": "Île-de-France",
"PostalCode": "75004",
"Country": "FR"
},
"Tag": "Created using the Mangopay API Postman collection"
}
const mangopayInstance = require('mangopay4-nodejs-sdk')
const mangopay = new mangopayInstance({
clientId: 'your-mangopay-client-id',
clientApiKey: 'your-mangopay-api-key',
})
let user = {
UserCategory: "OWNER",
TermsAndConditionsAccepted: true,
LegalPersonType: "SOLETRADER",
Name: "Alex Smith",
Email: "alex.smith.services@example.com",
LegalRepresentative: {
FirstName: "Alex",
LastName: "Smith",
Birthday: 652117514,
Nationality: "FR",
CountryOfResidence: "FR",
Email: "alex.smith@example.com",
PhoneNumber: "0611111111",
PhoneNumberCountry: "FR",
},
CompanyNumber: "123456789",
HeadquartersAddress: {
AddressLine1: "3 rue de la Cité",
AddressLine2: "Appartement 7",
City: "Paris",
Region: "Île-de-France",
PostalCode: "75004",
Country: "FR",
},
LegalRepresentativeAddress: {
AddressLine1: "3 rue de la Cité",
AddressLine2: "Appartement 7",
City: "Paris",
Region: "Île-de-France",
PostalCode: "75004",
Country: "FR",
},
Tag: "Created using the Mangopay NodeJS SDK",
PersonType: "LEGAL",
LegalPersonType: "SOLETRADER",
LegalSca: true,
};
const createUser = async (userObject) => {
return await mangopay.Users.create(userObject)
.then((response) => {
console.info(response);
return response;
})
.catch((err) => {
console.log(err);
return false;
});
};
createUser(user);
require 'mangopay'
MangoPay.configure do |client|
client.preproduction = true
client.client_id = 'your-mangopay-client-id'
client.client_apiKey = 'your-mangopay-api-key'
client.log_file = File.join(Dir.pwd, 'mangopay.log')
end
def createLegalUserSca(legalUserScaObject)
begin
response = MangoPay::LegalUserSca.create(legalUserScaObject)
puts response
return response
rescue MangoPay::ResponseError => error
puts "Failed to create User: #{error.message}"
puts "Error details: #{error.details}"
return false
end
end
myLegalUserSca = {
UserCategory: 'OWNER',
TermsAndConditionsAccepted: true,
LegalPersonType: 'SOLETRADER',
Name: 'Alex Smith',
Email: 'alex.smith.services@example.com',
LegalRepresentative: {
FirstName: 'Alex',
LastName: 'Smith',
Birthday: 652117514,
Nationality: 'FR',
CountryOfResidence: 'FR',
Email: 'alex.smith@example.com',
PhoneNumber: '0611111111',
PhoneNumberCountry: 'FR'
},
CompanyNumber: '123456789',
HeadquartersAddress: {
AddressLine1: '3 rue de la Cité',
AddressLine2: 'Appartement 7',
City: 'Paris',
Region: 'Île-de-France',
PostalCode: '75004',
Country: 'FR'
},
LegalRepresentativeAddress: {
AddressLine1: '3 rue de la Cité',
AddressLine2: 'Appartement 7',
City: 'Paris',
Region: 'Île-de-France',
PostalCode: '75004',
Country: 'FR'
},
Tag: 'Created using the Mangopay Ruby SDK'
}
createLegalUserSca(myLegalUserSca)
using MangoPay.SDK;
using MangoPay.SDK.Core.Enumerations;
using MangoPay.SDK.Entities;
using MangoPay.SDK.Entities.GET;
using MangoPay.SDK.Entities.POST;
using Newtonsoft.Json;
public class CreateLegalUserSca
{
public void Run()
{
Task.Run(async () =>
{
MangoPayApi api = new MangoPayApi();
api.Config.ClientId = "your-client-id";
api.Config.ClientPassword = "your-api-key";
var myUser = new UserLegalScaOwnerPostDTO
{
HeadquartersAddress = new Address
{
AddressLine1 = "17 Rue de la République",
City = "Paris",
Region = "Ile-de-France",
PostalCode = "75001",
Country = CountryIso.FR
},
LegalRepresentativeAddress = new Address
{
AddressLine1 = "12032 Wiza Way",
City = "Paris",
Region = "Ile-de-France",
PostalCode = "75001",
Country = CountryIso.FR
},
Name = "Dedicated Notion",
LegalPersonType = LegalPersonType.BUSINESS,
LegalRepresentative = new LegalRepresentative
{
FirstName = "Derek",
LastName = "Nelson",
Email = "derek.nelson@dedicatednotion.com",
Birthday = new DateTime(1980, 3, 15),
Nationality = CountryIso.FR,
CountryOfResidence = CountryIso.FR,
},
CompanyNumber = "325698745",
Email = "dedicatednotion@dedicatednotion.com",
Tag = "Created using the Mangopay .NET SDK",
TermsAndConditionsAccepted = true,
UserCategory = UserCategory.OWNER
};
var createLegalUser = await api.Users.CreateOwnerAsync(myUser);
string prettyPrint = JsonConvert.SerializeObject(createLegalUser, Formatting.Indented);
Console.WriteLine(prettyPrint);
}).GetAwaiter().GetResult();
}
}
<?php
require_once 'vendor/autoload.php';
use MangoPay\LegalPersonType;
use MangoPay\LegalRepresentative;
use MangoPay\Libraries\Exception as MGPException;
use MangoPay\Libraries\ResponseException as MGPResponseException;
use MangoPay\MangoPayApi;
use MangoPay\UserCategory;
use MangoPay\UserLegalSca;
$api = new MangoPayApi();
$api->Config->ClientId = 'your-client-id';
$api->Config->ClientPassword = 'your-mangopay-api-key';
$api->Config->TemporaryFolder = 'tmp/';
$api->Config->DebugMode = true;
try {
$legalRepresentative = new LegalRepresentative();
$legalRepresentative->FirstName = "John";
$legalRepresentative->LastName = "SCA Review";
$legalRepresentative->Email = "john.sca@example.com";
$legalRepresentative->Birthday = mktime(0, 0, 0, 12, 21, 1975);
$legalRepresentative->Nationality = 'FR';
$legalRepresentative->CountryOfResidence = 'FR';
$legalRepresentative->PhoneNumber = "+33611111111";
$legalRepresentative->PhoneNumberCountry = "FR";
$address = new \MangoPay\Address();
$address->AddressLine1 = 'Rue des plantes';
$address->AddressLine2 = '2nd floor';
$address->City = 'Paris';
$address->Country = 'FR';
$address->PostalCode = '75000';
$address->Region = 'IDF';
$user = new UserLegalSca();
$user->Name = "MartixSampleOrg";
$user->Email = "john.sca@example.com";
$user->LegalPersonType = LegalPersonType::Business;
$user->HeadquartersAddress = $address;
$user->UserCategory = UserCategory::Owner;
$user->LegalRepresentativeAddress = $address;
$user->CompanyNumber = "LU123456";
$user->TermsAndConditionsAccepted = true;
$user->LegalRepresentative = $legalRepresentative;
$response = $api->Users->Create($user);
print_r($response);
} catch (MGPResponseException $e) {
print_r($e);
} catch (MGPException $e) {
print_r($e);
}
{
"Name": "Alex Smith",
"LegalPersonType": "SOLETRADER",
"LegalRepresentative": {
"FirstName": "Alex",
"LastName": "Smith",
"ProofOfIdentity": null,
"Birthday": null,
"Nationality": null,
"CountryOfResidence": null,
"Email": null,
"PhoneNumber": "0611111111",
"PhoneNumberCountry": "FR"
},
"ProofOfRegistration": null,
"ShareholderDeclaration": null,
"Statute": null,
"CompanyNumber": null,
"PendingUserAction": null,
"HeadquartersAddress": {
"AddressLine1": null,
"AddressLine2": null,
"City": null,
"Region": null,
"PostalCode": null,
"Country": null
},
"LegalRepresentativeAddress": {
"AddressLine1": "3 rue de la Cité",
"AddressLine2": "Appartement 7",
"City": "Paris",
"Region": "Île-de-France",
"PostalCode": "75004",
"Country": "FR"
},
"Id": "user_m_01JF7FKVP51PS3TYKCN79VZZ8M",
"Tag": "Created using the Mangopay API Postman collection",
"CreationDate": 1734344306,
"PersonType": "LEGAL",
"Email": "alex.smith.services@example.com",
"KYCLevel": "LIGHT",
"TermsAndConditionsAccepted": false,
"TermsAndConditionsAcceptedDate": null,
"UserCategory": "PAYER",
"UserStatus": "ACTIVE"
}
{
"Name": "Alex Smith",
"LegalPersonType": "SOLETRADER",
"LegalRepresentative": {
"FirstName": "Alex",
"LastName": "Smith",
"ProofOfIdentity": null,
"Birthday": 652117514,
"Nationality": "FR",
"CountryOfResidence": "FR",
"Email": "alex.smith@example.com",
"PhoneNumber": "0611111111",
"PhoneNumberCountry": "FR"
},
"ProofOfRegistration": null,
"ShareholderDeclaration": null,
"Statute": null,
"CompanyNumber": "123456789",
"PendingUserAction": {
"RedirectUrl": "https://sca.sandbox.mangopay.com/?token=0193cef9efe7782881459b02bed1986c"
},
"HeadquartersAddress": {
"AddressLine1": "3 rue de la Cité",
"AddressLine2": "Appartement 7",
"City": "Paris",
"Region": "Île-de-France",
"PostalCode": "75004",
"Country": "FR"
},
"LegalRepresentativeAddress": {
"AddressLine1": "3 rue de la Cité",
"AddressLine2": "Appartement 7",
"City": "Paris",
"Region": "Île-de-France",
"PostalCode": "75004",
"Country": "FR"
},
"Id": "user_m_01JF7FKVP51PS3TYKCN79VZZ8M",
"Tag": "Created using the Mangopay API Postman collection",
"CreationDate": 1734344306,
"PersonType": "LEGAL",
"Email": "alex.smith.services@example.com",
"KYCLevel": "LIGHT",
"TermsAndConditionsAccepted": true,
"TermsAndConditionsAcceptedDate": 1734344306,
"UserCategory": "OWNER",
"UserStatus": "PENDING_USER_ACTION"
}
Users
Create a Legal User (SCA)
Register a Legal Payer or Owner (with SCA enrollment)
POST
/
v2.01
/
{ClientId}
/
sca
/
users
/
legal
{
"UserCategory": "PAYER",
"TermsAndConditionsAccepted": false,
"LegalPersonType": "SOLETRADER",
"Name": "Alex Smith",
"Email": "alex.smith.services@example.com",
"LegalRepresentative": {
"FirstName": "Alex",
"LastName": "Smith",
"PhoneNumber": "0611111111",
"PhoneNumberCountry": "FR"
},
"LegalRepresentativeAddress": {
"AddressLine1": "3 rue de la Cité",
"AddressLine2": "Appartement 7",
"City": "Paris",
"Region": "Île-de-France",
"PostalCode": "75004",
"Country": "FR"
},
"Tag": "Created using the Mangopay API Postman collection"
}
{
"UserCategory": "OWNER",
"TermsAndConditionsAccepted": true,
"LegalPersonType": "SOLETRADER",
"Name": "Alex Smith",
"Email": "alex.smith.services@example.com",
"LegalRepresentative": {
"FirstName": "Alex",
"LastName": "Smith",
"Birthday": 652117514,
"Nationality": "FR",
"CountryOfResidence": "FR",
"Email": "alex.smith@example.com",
"PhoneNumber": "0611111111",
"PhoneNumberCountry": "FR"
},
"CompanyNumber": "123456789",
"HeadquartersAddress": {
"AddressLine1": "3 rue de la Cité",
"AddressLine2": "Appartement 7",
"City": "Paris",
"Region": "Île-de-France",
"PostalCode": "75004",
"Country": "FR"
},
"LegalRepresentativeAddress": {
"AddressLine1": "3 rue de la Cité",
"AddressLine2": "Appartement 7",
"City": "Paris",
"Region": "Île-de-France",
"PostalCode": "75004",
"Country": "FR"
},
"Tag": "Created using the Mangopay API Postman collection"
}
const mangopayInstance = require('mangopay4-nodejs-sdk')
const mangopay = new mangopayInstance({
clientId: 'your-mangopay-client-id',
clientApiKey: 'your-mangopay-api-key',
})
let user = {
UserCategory: "OWNER",
TermsAndConditionsAccepted: true,
LegalPersonType: "SOLETRADER",
Name: "Alex Smith",
Email: "alex.smith.services@example.com",
LegalRepresentative: {
FirstName: "Alex",
LastName: "Smith",
Birthday: 652117514,
Nationality: "FR",
CountryOfResidence: "FR",
Email: "alex.smith@example.com",
PhoneNumber: "0611111111",
PhoneNumberCountry: "FR",
},
CompanyNumber: "123456789",
HeadquartersAddress: {
AddressLine1: "3 rue de la Cité",
AddressLine2: "Appartement 7",
City: "Paris",
Region: "Île-de-France",
PostalCode: "75004",
Country: "FR",
},
LegalRepresentativeAddress: {
AddressLine1: "3 rue de la Cité",
AddressLine2: "Appartement 7",
City: "Paris",
Region: "Île-de-France",
PostalCode: "75004",
Country: "FR",
},
Tag: "Created using the Mangopay NodeJS SDK",
PersonType: "LEGAL",
LegalPersonType: "SOLETRADER",
LegalSca: true,
};
const createUser = async (userObject) => {
return await mangopay.Users.create(userObject)
.then((response) => {
console.info(response);
return response;
})
.catch((err) => {
console.log(err);
return false;
});
};
createUser(user);
require 'mangopay'
MangoPay.configure do |client|
client.preproduction = true
client.client_id = 'your-mangopay-client-id'
client.client_apiKey = 'your-mangopay-api-key'
client.log_file = File.join(Dir.pwd, 'mangopay.log')
end
def createLegalUserSca(legalUserScaObject)
begin
response = MangoPay::LegalUserSca.create(legalUserScaObject)
puts response
return response
rescue MangoPay::ResponseError => error
puts "Failed to create User: #{error.message}"
puts "Error details: #{error.details}"
return false
end
end
myLegalUserSca = {
UserCategory: 'OWNER',
TermsAndConditionsAccepted: true,
LegalPersonType: 'SOLETRADER',
Name: 'Alex Smith',
Email: 'alex.smith.services@example.com',
LegalRepresentative: {
FirstName: 'Alex',
LastName: 'Smith',
Birthday: 652117514,
Nationality: 'FR',
CountryOfResidence: 'FR',
Email: 'alex.smith@example.com',
PhoneNumber: '0611111111',
PhoneNumberCountry: 'FR'
},
CompanyNumber: '123456789',
HeadquartersAddress: {
AddressLine1: '3 rue de la Cité',
AddressLine2: 'Appartement 7',
City: 'Paris',
Region: 'Île-de-France',
PostalCode: '75004',
Country: 'FR'
},
LegalRepresentativeAddress: {
AddressLine1: '3 rue de la Cité',
AddressLine2: 'Appartement 7',
City: 'Paris',
Region: 'Île-de-France',
PostalCode: '75004',
Country: 'FR'
},
Tag: 'Created using the Mangopay Ruby SDK'
}
createLegalUserSca(myLegalUserSca)
using MangoPay.SDK;
using MangoPay.SDK.Core.Enumerations;
using MangoPay.SDK.Entities;
using MangoPay.SDK.Entities.GET;
using MangoPay.SDK.Entities.POST;
using Newtonsoft.Json;
public class CreateLegalUserSca
{
public void Run()
{
Task.Run(async () =>
{
MangoPayApi api = new MangoPayApi();
api.Config.ClientId = "your-client-id";
api.Config.ClientPassword = "your-api-key";
var myUser = new UserLegalScaOwnerPostDTO
{
HeadquartersAddress = new Address
{
AddressLine1 = "17 Rue de la République",
City = "Paris",
Region = "Ile-de-France",
PostalCode = "75001",
Country = CountryIso.FR
},
LegalRepresentativeAddress = new Address
{
AddressLine1 = "12032 Wiza Way",
City = "Paris",
Region = "Ile-de-France",
PostalCode = "75001",
Country = CountryIso.FR
},
Name = "Dedicated Notion",
LegalPersonType = LegalPersonType.BUSINESS,
LegalRepresentative = new LegalRepresentative
{
FirstName = "Derek",
LastName = "Nelson",
Email = "derek.nelson@dedicatednotion.com",
Birthday = new DateTime(1980, 3, 15),
Nationality = CountryIso.FR,
CountryOfResidence = CountryIso.FR,
},
CompanyNumber = "325698745",
Email = "dedicatednotion@dedicatednotion.com",
Tag = "Created using the Mangopay .NET SDK",
TermsAndConditionsAccepted = true,
UserCategory = UserCategory.OWNER
};
var createLegalUser = await api.Users.CreateOwnerAsync(myUser);
string prettyPrint = JsonConvert.SerializeObject(createLegalUser, Formatting.Indented);
Console.WriteLine(prettyPrint);
}).GetAwaiter().GetResult();
}
}
<?php
require_once 'vendor/autoload.php';
use MangoPay\LegalPersonType;
use MangoPay\LegalRepresentative;
use MangoPay\Libraries\Exception as MGPException;
use MangoPay\Libraries\ResponseException as MGPResponseException;
use MangoPay\MangoPayApi;
use MangoPay\UserCategory;
use MangoPay\UserLegalSca;
$api = new MangoPayApi();
$api->Config->ClientId = 'your-client-id';
$api->Config->ClientPassword = 'your-mangopay-api-key';
$api->Config->TemporaryFolder = 'tmp/';
$api->Config->DebugMode = true;
try {
$legalRepresentative = new LegalRepresentative();
$legalRepresentative->FirstName = "John";
$legalRepresentative->LastName = "SCA Review";
$legalRepresentative->Email = "john.sca@example.com";
$legalRepresentative->Birthday = mktime(0, 0, 0, 12, 21, 1975);
$legalRepresentative->Nationality = 'FR';
$legalRepresentative->CountryOfResidence = 'FR';
$legalRepresentative->PhoneNumber = "+33611111111";
$legalRepresentative->PhoneNumberCountry = "FR";
$address = new \MangoPay\Address();
$address->AddressLine1 = 'Rue des plantes';
$address->AddressLine2 = '2nd floor';
$address->City = 'Paris';
$address->Country = 'FR';
$address->PostalCode = '75000';
$address->Region = 'IDF';
$user = new UserLegalSca();
$user->Name = "MartixSampleOrg";
$user->Email = "john.sca@example.com";
$user->LegalPersonType = LegalPersonType::Business;
$user->HeadquartersAddress = $address;
$user->UserCategory = UserCategory::Owner;
$user->LegalRepresentativeAddress = $address;
$user->CompanyNumber = "LU123456";
$user->TermsAndConditionsAccepted = true;
$user->LegalRepresentative = $legalRepresentative;
$response = $api->Users->Create($user);
print_r($response);
} catch (MGPResponseException $e) {
print_r($e);
} catch (MGPException $e) {
print_r($e);
}
{
"Name": "Alex Smith",
"LegalPersonType": "SOLETRADER",
"LegalRepresentative": {
"FirstName": "Alex",
"LastName": "Smith",
"ProofOfIdentity": null,
"Birthday": null,
"Nationality": null,
"CountryOfResidence": null,
"Email": null,
"PhoneNumber": "0611111111",
"PhoneNumberCountry": "FR"
},
"ProofOfRegistration": null,
"ShareholderDeclaration": null,
"Statute": null,
"CompanyNumber": null,
"PendingUserAction": null,
"HeadquartersAddress": {
"AddressLine1": null,
"AddressLine2": null,
"City": null,
"Region": null,
"PostalCode": null,
"Country": null
},
"LegalRepresentativeAddress": {
"AddressLine1": "3 rue de la Cité",
"AddressLine2": "Appartement 7",
"City": "Paris",
"Region": "Île-de-France",
"PostalCode": "75004",
"Country": "FR"
},
"Id": "user_m_01JF7FKVP51PS3TYKCN79VZZ8M",
"Tag": "Created using the Mangopay API Postman collection",
"CreationDate": 1734344306,
"PersonType": "LEGAL",
"Email": "alex.smith.services@example.com",
"KYCLevel": "LIGHT",
"TermsAndConditionsAccepted": false,
"TermsAndConditionsAcceptedDate": null,
"UserCategory": "PAYER",
"UserStatus": "ACTIVE"
}
{
"Name": "Alex Smith",
"LegalPersonType": "SOLETRADER",
"LegalRepresentative": {
"FirstName": "Alex",
"LastName": "Smith",
"ProofOfIdentity": null,
"Birthday": 652117514,
"Nationality": "FR",
"CountryOfResidence": "FR",
"Email": "alex.smith@example.com",
"PhoneNumber": "0611111111",
"PhoneNumberCountry": "FR"
},
"ProofOfRegistration": null,
"ShareholderDeclaration": null,
"Statute": null,
"CompanyNumber": "123456789",
"PendingUserAction": {
"RedirectUrl": "https://sca.sandbox.mangopay.com/?token=0193cef9efe7782881459b02bed1986c"
},
"HeadquartersAddress": {
"AddressLine1": "3 rue de la Cité",
"AddressLine2": "Appartement 7",
"City": "Paris",
"Region": "Île-de-France",
"PostalCode": "75004",
"Country": "FR"
},
"LegalRepresentativeAddress": {
"AddressLine1": "3 rue de la Cité",
"AddressLine2": "Appartement 7",
"City": "Paris",
"Region": "Île-de-France",
"PostalCode": "75004",
"Country": "FR"
},
"Id": "user_m_01JF7FKVP51PS3TYKCN79VZZ8M",
"Tag": "Created using the Mangopay API Postman collection",
"CreationDate": 1734344306,
"PersonType": "LEGAL",
"Email": "alex.smith.services@example.com",
"KYCLevel": "LIGHT",
"TermsAndConditionsAccepted": true,
"TermsAndConditionsAcceptedDate": 1734344306,
"UserCategory": "OWNER",
"UserStatus": "PENDING_USER_ACTION"
}
Note – SCA triggered for OwnersIf
UserCategory is OWNER, this endpoint triggers SCA enrollment. SCA applies to all LegalPersonType.Your platform needs to use the returned PendingUserAction.RedirectUrl (and add an encoded returnUrl query parameter) to redirect the user so they can enroll. Read more about how to redirect them in the SCA session guide.In Sandbox, you can bypass SCA by including the word accept in the Legal User’s LegalRepresentative.Email – for example accept@example.com or john.doe+accept@example.com.Note – Legal representative’s email required for OwnersIf
UserCategory is OWNER, the LegalRepresentative.Email address is required.SCA uses this email address for the individual who will complete SCA to build a behavioral biometrics profile and as a backup communication channel. Prior to SCA, it was possible to create a Legal OWNER without the LegalRepresentativeEmail.Note – Country-based restrictions apply to usersDue to Mangopay’s country restrictions, it is not possible to use blocked countries as the following:
HeadquartersAddress.CountryLegalRepresentative.NationalityLegalRepresentative.CountryOfResidenceLegalRepresentativeAddress.Country
Body parameters
string
required
Max. length: 255 charactersThe registered legal name of the entity. The
Name value should be the one registered with the relevant national authority.string
required
Allowed values: BUSINESS, PARTNERSHIP, ORGANIZATION, SOLETRADERThe type of legal user. For information on which
LegalPersonType to use for a particular local legal structure, see the verification requirements.Caution: Modification of the LegalPersonType may result in a verification downgrade.object
required
Information about the legal representative declared for the user.
Show properties
Show properties
string
required
Min. length: 1; max. length: 100The first name of the individual.
string
required
Min. length: 1; max. length: 100The last name of the individual.
Unix timestamp
Required if
UserCategory is OWNER. Returned null if UserCategory is PAYER.The date of birth of the individual.Note: This is a Unix timestamp in UTC. Ensure you convert your timezone to UTC to avoid midnight being interpreted as the day before.string
Format: Two-letter country code (ISO 3166-1 alpha-2 format)Required if
UserCategory is OWNER. Returned null if UserCategory is PAYER.The nationality of the individual.string
Format: Two-letter country code (ISO 3166-1 alpha-2 format)Required if
UserCategory is OWNER. Returned null if UserCategory is PAYER.The country of residence of the individual.string
Format: A valid email addressRequired if
UserCategory is OWNER. Returned null if UserCategory is PAYER.The individual’s email address. For OWNER users, SCA uses this email address to build a behavioral biometrics profile and as a backup communication channel.string
Format: International E.164 standard (preceded by plus sign and country code) or local formatThe individual’s phone number. The local format (recommended) requires
PhoneNumberCountry to ensure correct formatting.If present, the phone number forms part of card transaction data that is passed to issuers to improve authentication rates.For users with UserCategory OWNER , the phone number is used to pre-populate the SCA session for them to confirm and receive an SMS OTP. If the individual modifies the phone number during the session, this data is not updated in the API.string
Format: Two-letter country code (ISO 3166-1 alpha-2 format)Required if the
PhoneNumber is provided in local format (recommended), to render the value in the E.164 standard.string
Required if
UserCategory is OWNER and LegalPersonType is BUSINESS. Returned null if UserCategory is PAYER.The registration number of the entity, assigned by the relevant national authority. For information on the expected format for a specific country, see the Company number guide. To validate the format of a number before submitting documents for verification, use POST Validate the format of User data.object
Required if
UserCategory is OWNER. Child parameters returned null if UserCategory is PAYER.The legally registered address of the entity’s administrative center.Show properties
Show properties
string
required
Max. length: 255 charactersThe first line of the address.
string
Max. length: 255 charactersThe second line of the address.
string
required
Max. length: 255 charactersThe city of the address.
string
Max. length: 255 charactersRequired if
Country is US, CA, or MX.The region of the address.string
required
Max. length: 255 charactersThe postal code of the address. The postal code can contain the following characters: alphanumeric, dashes, and spaces.
string
required
The country of the address.
object
The address of the entity’s legal representative.
Show properties
Show properties
string
required
Max. length: 255 charactersThe first line of the address.
string
Max. length: 255 charactersThe second line of the address.
string
required
Max. length: 255 charactersThe city of the address.
string
Max. length: 255 charactersRequired if
Country is US, CA, or MX.The region of the address.string
required
Max. length: 255 charactersThe postal code of the address. The postal code can contain the following characters: alphanumeric, dashes, and spaces.
string
required
Format: Two-letter country code (ISO 3166-1 alpha-2 format)The country of the address.
string
Max. length: 255 charactersCustom data that you can add to this object.
string
required
Format: A valid email addressThe email address for the entity.
boolean
required
Whether the user has accepted Mangopay’s terms and conditions (as defined by your contract, see the T&Cs guide for details).Must be
true if UserCategory is OWNER.string
required
Allowed values:
PAYER, OWNERThe category of the user:PAYER– User who can only make pay-ins to their wallets and transfers to other wallets (as well as refunds for pay-ins and transfers).OWNER– User who can also receive transfers to their wallets. Owners are able to request KYC verification, which if successful gives them theKYCLevelofREGULARand the ability to request payouts.
string
Possible values:
USER_PRESENT, USER_NOT_PRESENTDefault value: USER_PRESENTThe SCA context of the request, which is required if the OWNER value is being assigned for UserCategory:USER_PRESENT– The user is on session duringOWNERaccount creation and can enroll in SCA at the same time. The platform must redirect the user using thePendingUserAction.RedirectUrlreturned so that the user can complete the SCA session.USER_NOT_PRESENT– The platform has explicit permission from Mangopay to create theOWNERuser account without simultaneous SCA enrollment.
ScaContext is not returned in the API response as it does not form part of the User data – it’s only related to the action being performed on the user.Responses
200
200
string
Max. length: 255 charactersThe registered legal name of the entity. The
Name value should be the one registered with the relevant national authority.string
Returned values: BUSINESS, PARTNERSHIP, ORGANIZATION, SOLETRADERThe type of legal user. For information on which
LegalPersonType to use for a particular local legal structure, see the verification requirements.Caution: Modification of the LegalPersonType may result in a verification downgrade.object
Information about the legal representative declared for the user.
Show properties
Show properties
string
Min. length: 1; max. length: 100The first name of the individual.
string
Min. length: 1; max. length: 100The last name of the individual.
string
The
Id of the KYC Document whose Type is IDENTITY_PROOF if validated for the user. If no identity proof is validated, then this value is null.Unix timestamp
Returned
null if UserCategory is PAYER.The date of birth of the individual.Note: This is a Unix timestamp in UTC. Ensure you convert your timezone to UTC to avoid midnight being interpreted as the day before.string
Returned
null if UserCategory is PAYER.The nationality of the individual.string
Returned
null if UserCategory is PAYER.The country of residence of the individual.string
Format: A valid email addressRequired if
UserCategory is OWNER. Returned null if UserCategory is PAYER.The individual’s email address. For OWNER users, SCA uses this email address to build a behavioral biometrics profile and as a backup communication channel.string
Format: Two-letter country code (ISO 3166-1 alpha-2 format)Required if the
PhoneNumber is provided in local format (recommended), to render the value in the E.164 standard.string
Format: International E.164 standard (preceded by plus sign and country code) or local formatThe individual’s phone number. The local format (recommended) requires
PhoneNumberCountry to ensure correct formatting.If present, the phone number forms part of card transaction data that is passed to issuers to improve authentication rates.For users with UserCategory OWNER , the phone number is used to pre-populate the SCA session for them to confirm and receive an SMS OTP. If the individual modifies the phone number during the session, this data is not updated in the API.string
The
Id of the KYC Document whose Type is REGISTRATION_PROOF if validated for the user. If no registration proof is validated, then this value is null.string
The
Id of the KYC Document whose Type is SHAREHOLDERS_DECLARATION if validated for the user. If no Shareholder Declaration is validated, then this value is null.string
The
Id of the KYC Document whose Type is ARTICLES_OF_ASSOCIATION if validated for the user. If no articles of association document is validated, then this value is null.string
Required if
UserCategory is OWNER and LegalPersonType is BUSINESS. Returned null if UserCategory is PAYER.The registration number of the entity, assigned by the relevant national authority. For information on the expected format for a specific country, see the Company number guide. To validate the format of a number before submitting documents for verification, use POST Validate the format of User data.object
Object containing the link needed for SCA redirection if triggered by the API call (otherwise returned
null).Hide properties
Hide properties
string
The URL to which to redirect the user to perform strong customer authentication (SCA) via a Mangopay-hosted webpage. This value is a variable and should not be hardcoded.The SCA session link expires 10 minutes after it’s generated.Caution: Before redirecting the user on this URL, you must add the query parameter
ReturnUrl with the percent-encoded URL to which you want the SCA session to return the user after authentication (whether successful or not).For more details, see How to redirect a user for an SCA session.object
The legally registered address of the entity’s administrative center.
This object’s sub-parameters are
This object’s sub-parameters are
null if the UserCategory is PAYER.Show properties
Show properties
string
Max. length: 255 charactersThe first line of the address.
string
Max. length: 255 charactersThe second line of the address.
string
Max. length: 255 charactersThe city of the address.
string
Max. length: 255 charactersThe region of the address. This field is optional except if the
Country is US, CA, or MX.string
Max. length: 255 charactersThe postal code of the address. The postal code can contain the following characters: alphanumeric, dashes, and spaces.
string
Format: Two-letter country code (ISO 3166-1 alpha-2 format)The country of the address.
object
The address of the entity’s legal representative.
Show properties
Show properties
string
Max. length: 255 charactersThe first line of the address.
string
Max. length: 255 charactersThe second line of the address.
string
Max. length: 255 charactersThe city of the address.
string
Max. length: 255 charactersThe region of the address. This field is optional except if the
Country is US, CA, or MX.string
Max. length: 255 charactersThe postal code of the address. The postal code can contain the following characters: alphanumeric, dashes, and spaces.
string
Format: Two-letter country code (ISO 3166-1 alpha-2 format)The country of the address.
string
Max length: 128 characters (see data formats for details)The unique identifier of the object.
string
Max. length: 255 charactersCustom data that you can add to this object.
Unix timestamp
The date and time at which the object was created.
string
Returned values: NATURAL, LEGALThe type of the user:
NATURAL– Natural users are individuals (natural persons).LEGAL– Legal users are legal entities (legal persons) like companies, non-profits, and sole proprietors.
PersonType is defined by the endpoint used to create the user and can’t be modified.string
Format: A valid email addressThe email address for the entity.
string
Default value:
LIGHTReturned values: LIGHT, REGULARThe verification status of the user set by Mangopay:LIGHT– Unverified, assigned by default to all users.REGULAR– Verified, meaning the user has successfully completed the verification process and had the necessary documents validated by Mangopay. Only users whoseUserCategoryisOWNERcan submit verification documents for validation. Only users whoseKYCLevelisREGULARcan request payouts.
boolean
Whether the user has accepted Mangopay’s terms and conditions (as defined by your contract, see the T&Cs guide for details).Must be
true if UserCategory is OWNER.Unix timestamp
The date and time at which the
TermsAndConditionsAccepted value was set to true.Returned null if UserCategory is PAYER.string
Possible values:
PAYER, OWNER, PLATFORMThe category of the user:PAYER– User who can only make pay-ins to their wallets and transfers to other wallets (as well as refunds for pay-ins and transfers).OWNER– User who can also receive transfers to their wallets. Owners are able to request KYC verification, which if successful gives them theKYCLevelofREGULARand the ability to request payouts.PLATFORM– Single specific user that represents the platform. ThePLATFORMvalue is only assigned by Mangopay and may be used as part of the validated workflow implemented by the platform.
string
Returned values:
PENDING_USER_ACTION, ACTIVE, CLOSEDThe status of the user:PENDING_USER_ACTION– The user must enroll in SCA before they can becomeACTIVE.ACTIVE– The user account is active and the user can access Mangopay features.CLOSED– The user account is permanently closed. This value is used by Mangopay to close an account following the procedure outlined in the terms and conditions.
400 - Data doesn't comply with anti-fraud policy
400 - Data doesn't comply with anti-fraud policy
{
"Message": "The data you provided does not comply with our anti-fraud policy",
"Type": "fraud_policy",
"Id": "51876239-4814-422e-8f4b-6986520414bb#1750420019",
"Date": 1750420020,
"errors": null
}
400 - Restricted country
400 - Restricted country
{
"Message": "One or several required parameters are missing or incorrect. An incorrect resource ID also raises this kind of error.",
"Type": "param_error",
"Id": "733c8dbc-2770-4cc4-80d4-63d684cff38c#1750669115",
"Date": 1750669116,
"errors": {
"HeadquartersAddress.Country": "The HeadquartersAddress.Country used is blocked"
}
}
400 - Invalid email
400 - Invalid email
{
"Message": "One or several required parameters are missing or incorrect. An incorrect resource ID also raises this kind of error.",
"Type": "param_error",
"Id": "864a164a-cbb9-4e9d-b140-2b83c720e729",
"Date": 1690291065.0,
"errors": {
"LegalRepresentative.Email": "The field Email must match the regular expression '([a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*)@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?'."
}
}
400 - LegalRepresentative.Email required if OWNER
400 - LegalRepresentative.Email required if OWNER
{
"Message": "One or several required parameters are missing or incorrect. An incorrect resource ID also raises this kind of error.",
"Type": "param_error",
"Id": "c55c3a1e-b581-414b-97be-4c8915127f3b",
"Date": 1751881331.0,
"errors": {
"LegalRepresentative.Email": "'Email' must not be empty."
}
}
403 - TermsAndConditionsAccepted must be true if OWNER
403 - TermsAndConditionsAccepted must be true if OWNER
{
"Message": "User must accept the terms and conditions before account creation or modification.",
"Type": "user_hasnt_accepted_terms_and_conditions",
"Id": "dbbc752b-6f9f-4248-a4bb-04ee0ba7b4b7",
"Date": 1730810728,
"errors": null
}
400 - LegalRepresentative.Birthday can't indicate an age older than 120 years
400 - LegalRepresentative.Birthday can't indicate an age older than 120 years
{
"Message": "One or several required parameters are missing or incorrect. An incorrect resource ID also raises this kind of error.",
"Type": "param_error",
"Id": "741b5be7-a34c-4fd4-abb5-75b23d0b1cec",
"Date": 1776242161.0,
"errors": {
"LegalRepresentative.Birthday": "The Birthday value indicates an age over 120 years, which is not allowed."
}
}
{
"Name": "Alex Smith",
"LegalPersonType": "SOLETRADER",
"LegalRepresentative": {
"FirstName": "Alex",
"LastName": "Smith",
"ProofOfIdentity": null,
"Birthday": null,
"Nationality": null,
"CountryOfResidence": null,
"Email": null,
"PhoneNumber": "0611111111",
"PhoneNumberCountry": "FR"
},
"ProofOfRegistration": null,
"ShareholderDeclaration": null,
"Statute": null,
"CompanyNumber": null,
"PendingUserAction": null,
"HeadquartersAddress": {
"AddressLine1": null,
"AddressLine2": null,
"City": null,
"Region": null,
"PostalCode": null,
"Country": null
},
"LegalRepresentativeAddress": {
"AddressLine1": "3 rue de la Cité",
"AddressLine2": "Appartement 7",
"City": "Paris",
"Region": "Île-de-France",
"PostalCode": "75004",
"Country": "FR"
},
"Id": "user_m_01JF7FKVP51PS3TYKCN79VZZ8M",
"Tag": "Created using the Mangopay API Postman collection",
"CreationDate": 1734344306,
"PersonType": "LEGAL",
"Email": "alex.smith.services@example.com",
"KYCLevel": "LIGHT",
"TermsAndConditionsAccepted": false,
"TermsAndConditionsAcceptedDate": null,
"UserCategory": "PAYER",
"UserStatus": "ACTIVE"
}
{
"Name": "Alex Smith",
"LegalPersonType": "SOLETRADER",
"LegalRepresentative": {
"FirstName": "Alex",
"LastName": "Smith",
"ProofOfIdentity": null,
"Birthday": 652117514,
"Nationality": "FR",
"CountryOfResidence": "FR",
"Email": "alex.smith@example.com",
"PhoneNumber": "0611111111",
"PhoneNumberCountry": "FR"
},
"ProofOfRegistration": null,
"ShareholderDeclaration": null,
"Statute": null,
"CompanyNumber": "123456789",
"PendingUserAction": {
"RedirectUrl": "https://sca.sandbox.mangopay.com/?token=0193cef9efe7782881459b02bed1986c"
},
"HeadquartersAddress": {
"AddressLine1": "3 rue de la Cité",
"AddressLine2": "Appartement 7",
"City": "Paris",
"Region": "Île-de-France",
"PostalCode": "75004",
"Country": "FR"
},
"LegalRepresentativeAddress": {
"AddressLine1": "3 rue de la Cité",
"AddressLine2": "Appartement 7",
"City": "Paris",
"Region": "Île-de-France",
"PostalCode": "75004",
"Country": "FR"
},
"Id": "user_m_01JF7FKVP51PS3TYKCN79VZZ8M",
"Tag": "Created using the Mangopay API Postman collection",
"CreationDate": 1734344306,
"PersonType": "LEGAL",
"Email": "alex.smith.services@example.com",
"KYCLevel": "LIGHT",
"TermsAndConditionsAccepted": true,
"TermsAndConditionsAcceptedDate": 1734344306,
"UserCategory": "OWNER",
"UserStatus": "PENDING_USER_ACTION"
}
{
"UserCategory": "PAYER",
"TermsAndConditionsAccepted": false,
"LegalPersonType": "SOLETRADER",
"Name": "Alex Smith",
"Email": "alex.smith.services@example.com",
"LegalRepresentative": {
"FirstName": "Alex",
"LastName": "Smith",
"PhoneNumber": "0611111111",
"PhoneNumberCountry": "FR"
},
"LegalRepresentativeAddress": {
"AddressLine1": "3 rue de la Cité",
"AddressLine2": "Appartement 7",
"City": "Paris",
"Region": "Île-de-France",
"PostalCode": "75004",
"Country": "FR"
},
"Tag": "Created using the Mangopay API Postman collection"
}
{
"UserCategory": "OWNER",
"TermsAndConditionsAccepted": true,
"LegalPersonType": "SOLETRADER",
"Name": "Alex Smith",
"Email": "alex.smith.services@example.com",
"LegalRepresentative": {
"FirstName": "Alex",
"LastName": "Smith",
"Birthday": 652117514,
"Nationality": "FR",
"CountryOfResidence": "FR",
"Email": "alex.smith@example.com",
"PhoneNumber": "0611111111",
"PhoneNumberCountry": "FR"
},
"CompanyNumber": "123456789",
"HeadquartersAddress": {
"AddressLine1": "3 rue de la Cité",
"AddressLine2": "Appartement 7",
"City": "Paris",
"Region": "Île-de-France",
"PostalCode": "75004",
"Country": "FR"
},
"LegalRepresentativeAddress": {
"AddressLine1": "3 rue de la Cité",
"AddressLine2": "Appartement 7",
"City": "Paris",
"Region": "Île-de-France",
"PostalCode": "75004",
"Country": "FR"
},
"Tag": "Created using the Mangopay API Postman collection"
}
const mangopayInstance = require('mangopay4-nodejs-sdk')
const mangopay = new mangopayInstance({
clientId: 'your-mangopay-client-id',
clientApiKey: 'your-mangopay-api-key',
})
let user = {
UserCategory: "OWNER",
TermsAndConditionsAccepted: true,
LegalPersonType: "SOLETRADER",
Name: "Alex Smith",
Email: "alex.smith.services@example.com",
LegalRepresentative: {
FirstName: "Alex",
LastName: "Smith",
Birthday: 652117514,
Nationality: "FR",
CountryOfResidence: "FR",
Email: "alex.smith@example.com",
PhoneNumber: "0611111111",
PhoneNumberCountry: "FR",
},
CompanyNumber: "123456789",
HeadquartersAddress: {
AddressLine1: "3 rue de la Cité",
AddressLine2: "Appartement 7",
City: "Paris",
Region: "Île-de-France",
PostalCode: "75004",
Country: "FR",
},
LegalRepresentativeAddress: {
AddressLine1: "3 rue de la Cité",
AddressLine2: "Appartement 7",
City: "Paris",
Region: "Île-de-France",
PostalCode: "75004",
Country: "FR",
},
Tag: "Created using the Mangopay NodeJS SDK",
PersonType: "LEGAL",
LegalPersonType: "SOLETRADER",
LegalSca: true,
};
const createUser = async (userObject) => {
return await mangopay.Users.create(userObject)
.then((response) => {
console.info(response);
return response;
})
.catch((err) => {
console.log(err);
return false;
});
};
createUser(user);
require 'mangopay'
MangoPay.configure do |client|
client.preproduction = true
client.client_id = 'your-mangopay-client-id'
client.client_apiKey = 'your-mangopay-api-key'
client.log_file = File.join(Dir.pwd, 'mangopay.log')
end
def createLegalUserSca(legalUserScaObject)
begin
response = MangoPay::LegalUserSca.create(legalUserScaObject)
puts response
return response
rescue MangoPay::ResponseError => error
puts "Failed to create User: #{error.message}"
puts "Error details: #{error.details}"
return false
end
end
myLegalUserSca = {
UserCategory: 'OWNER',
TermsAndConditionsAccepted: true,
LegalPersonType: 'SOLETRADER',
Name: 'Alex Smith',
Email: 'alex.smith.services@example.com',
LegalRepresentative: {
FirstName: 'Alex',
LastName: 'Smith',
Birthday: 652117514,
Nationality: 'FR',
CountryOfResidence: 'FR',
Email: 'alex.smith@example.com',
PhoneNumber: '0611111111',
PhoneNumberCountry: 'FR'
},
CompanyNumber: '123456789',
HeadquartersAddress: {
AddressLine1: '3 rue de la Cité',
AddressLine2: 'Appartement 7',
City: 'Paris',
Region: 'Île-de-France',
PostalCode: '75004',
Country: 'FR'
},
LegalRepresentativeAddress: {
AddressLine1: '3 rue de la Cité',
AddressLine2: 'Appartement 7',
City: 'Paris',
Region: 'Île-de-France',
PostalCode: '75004',
Country: 'FR'
},
Tag: 'Created using the Mangopay Ruby SDK'
}
createLegalUserSca(myLegalUserSca)
using MangoPay.SDK;
using MangoPay.SDK.Core.Enumerations;
using MangoPay.SDK.Entities;
using MangoPay.SDK.Entities.GET;
using MangoPay.SDK.Entities.POST;
using Newtonsoft.Json;
public class CreateLegalUserSca
{
public void Run()
{
Task.Run(async () =>
{
MangoPayApi api = new MangoPayApi();
api.Config.ClientId = "your-client-id";
api.Config.ClientPassword = "your-api-key";
var myUser = new UserLegalScaOwnerPostDTO
{
HeadquartersAddress = new Address
{
AddressLine1 = "17 Rue de la République",
City = "Paris",
Region = "Ile-de-France",
PostalCode = "75001",
Country = CountryIso.FR
},
LegalRepresentativeAddress = new Address
{
AddressLine1 = "12032 Wiza Way",
City = "Paris",
Region = "Ile-de-France",
PostalCode = "75001",
Country = CountryIso.FR
},
Name = "Dedicated Notion",
LegalPersonType = LegalPersonType.BUSINESS,
LegalRepresentative = new LegalRepresentative
{
FirstName = "Derek",
LastName = "Nelson",
Email = "derek.nelson@dedicatednotion.com",
Birthday = new DateTime(1980, 3, 15),
Nationality = CountryIso.FR,
CountryOfResidence = CountryIso.FR,
},
CompanyNumber = "325698745",
Email = "dedicatednotion@dedicatednotion.com",
Tag = "Created using the Mangopay .NET SDK",
TermsAndConditionsAccepted = true,
UserCategory = UserCategory.OWNER
};
var createLegalUser = await api.Users.CreateOwnerAsync(myUser);
string prettyPrint = JsonConvert.SerializeObject(createLegalUser, Formatting.Indented);
Console.WriteLine(prettyPrint);
}).GetAwaiter().GetResult();
}
}
<?php
require_once 'vendor/autoload.php';
use MangoPay\LegalPersonType;
use MangoPay\LegalRepresentative;
use MangoPay\Libraries\Exception as MGPException;
use MangoPay\Libraries\ResponseException as MGPResponseException;
use MangoPay\MangoPayApi;
use MangoPay\UserCategory;
use MangoPay\UserLegalSca;
$api = new MangoPayApi();
$api->Config->ClientId = 'your-client-id';
$api->Config->ClientPassword = 'your-mangopay-api-key';
$api->Config->TemporaryFolder = 'tmp/';
$api->Config->DebugMode = true;
try {
$legalRepresentative = new LegalRepresentative();
$legalRepresentative->FirstName = "John";
$legalRepresentative->LastName = "SCA Review";
$legalRepresentative->Email = "john.sca@example.com";
$legalRepresentative->Birthday = mktime(0, 0, 0, 12, 21, 1975);
$legalRepresentative->Nationality = 'FR';
$legalRepresentative->CountryOfResidence = 'FR';
$legalRepresentative->PhoneNumber = "+33611111111";
$legalRepresentative->PhoneNumberCountry = "FR";
$address = new \MangoPay\Address();
$address->AddressLine1 = 'Rue des plantes';
$address->AddressLine2 = '2nd floor';
$address->City = 'Paris';
$address->Country = 'FR';
$address->PostalCode = '75000';
$address->Region = 'IDF';
$user = new UserLegalSca();
$user->Name = "MartixSampleOrg";
$user->Email = "john.sca@example.com";
$user->LegalPersonType = LegalPersonType::Business;
$user->HeadquartersAddress = $address;
$user->UserCategory = UserCategory::Owner;
$user->LegalRepresentativeAddress = $address;
$user->CompanyNumber = "LU123456";
$user->TermsAndConditionsAccepted = true;
$user->LegalRepresentative = $legalRepresentative;
$response = $api->Users->Create($user);
print_r($response);
} catch (MGPResponseException $e) {
print_r($e);
} catch (MGPException $e) {
print_r($e);
}
Was this page helpful?