Overview
The Users API allows you to create and manage both natural (individual) and legal (business) users in your Mangopay platform. Users are the foundation of your payment system and can hold wallets, make transactions, and own payment methods. Mangopay supports two types of users:- Natural Users: Individual persons
- Legal Users: Businesses, organizations, or other legal entities
Methods
Create
Create a new user (natural or legal).The user object to create. Pass either a
UserNatural, UserNaturalSca, UserLegal, or UserLegalSca instance.Optional idempotency key to ensure request uniqueness
UserLegal|UserNatural|UserNaturalSca|UserLegalSca - The created user object
Example:
Get
Retrieve a user by their ID.The unique identifier of the user
UserLegal|UserNatural - The user object
Example:
GetSca
Retrieve an SCA user by their ID.The unique identifier of the user
UserNaturalSca|UserLegalSca - The SCA user object
Example:
GetNatural
Retrieve a natural user by their ID.The unique identifier of the natural user
UserNatural - The natural user object
Example:
GetNaturalSca
Retrieve an SCA natural user by their ID.The unique identifier of the natural user
UserNaturalSca - The SCA natural user object
GetLegal
Retrieve a legal user by their ID.The unique identifier of the legal user
UserLegal - The legal user object
Example:
GetLegalSca
Retrieve an SCA legal user by their ID.The unique identifier of the legal user
UserLegalSca - The SCA legal user object
GetAll
Retrieve all users with pagination and sorting.Pagination object (passed by reference, updated with total count)
Sorting configuration object
UserLegal[]|UserNatural[] - Array of user objects
Example:
Update
Update an existing user.The user object with updated properties. Must include the user’s ID.
UserLegal|UserNatural - The updated user object
Example:
UpdateSca
Update an existing SCA user.The SCA user object with updated properties. Must include the user’s ID.
UserLegalSca|UserNaturalSca - The updated SCA user object
Categorize
Transition a Natural/Legal Payer to Owner (SCA). Some parameters may be required based on the kind of transition.The user object to categorize
UserLegalSca|UserNaturalSca|UserLegal|UserNatural - The categorized user object
Close
Close a user (change status to CLOSED). The resource remains available for historical purposes.The user object to close. Must include the user’s ID.
User-Related Operations
Bank Accounts
CreateBankAccount
Create a bank account for a user.The user ID
The bank account object to create
Optional idempotency key
BankAccount - The created bank account
Example:
GetBankAccount
Retrieve a specific bank account for a user.The user ID
The bank account ID
BankAccount - The bank account object
GetBankAccounts
Retrieve all bank accounts for a user.The user ID
Pagination object
Sorting configuration
Filter criteria
BankAccount[] - Array of bank account objects
UpdateBankAccount
Update a bank account.The user ID
The bank account object with updated properties
BankAccount - The updated bank account
Wallets
GetWallets
Retrieve all wallets for a user.The user ID
Pagination object
Sorting configuration
Filter criteria
Wallet[] - Array of wallet objects
Example:
Transactions
GetTransactions
Retrieve all transactions for a user.The user ID
Pagination object
Transaction filter criteria
Sorting configuration
Transaction[] - Array of transaction objects
Example:
Cards
GetCards
Retrieve all cards for a user.The user ID
Pagination object
Card filter criteria
Sorting configuration
Card[] - Array of card objects
Example:
KYC Documents
CreateKycDocument
Create a new KYC (Know Your Customer) document for a user.The user ID
The KYC document object
Optional idempotency key
KycDocument - The created KYC document
GetKycDocument
Retrieve a specific KYC document.The user ID
The KYC document ID
KycDocument - The KYC document object
GetKycDocuments
Retrieve all KYC documents for a user.The user ID
Pagination object
Sorting configuration
KYC document filter criteria
KycDocument[] - Array of KYC document objects
UpdateKycDocument
Update a KYC document.The user ID
The KYC document object with updated properties
KycDocument - The updated KYC document
CreateKycPage
Create a page for a KYC document.The user ID
The KYC document ID
The KYC page object containing base64 encoded file data
Optional idempotency key
true - Always returns true on success
CreateKycPageFromFile
Create a page for a KYC document from a file path.The user ID
The KYC document ID
Path to the file to upload
Optional idempotency key
true - Always returns true on success
Example:
Mandates
GetMandates
Retrieve all mandates for a user.The user ID
Pagination object
Filter criteria
Sorting configuration
Mandate[] - Array of mandate objects
GetMandatesForBankAccount
Retrieve mandates for a specific user and bank account.The user ID
The bank account ID
Pagination object
Filter criteria
Sorting configuration
Mandate[] - Array of mandate objects
PreAuthorizations
GetPreAuthorizations
Retrieve all pre-authorizations for a user.The user ID
Pagination object
Pre-authorization filter criteria
Sorting configuration
CardPreAuthorization[] - Array of pre-authorization objects
EMoney
GetEMoney
Retrieve the e-money for a user for a specific year or month.The user ID
The year (defaults to current year if not provided)
The month (1-12). If not provided, returns yearly data.
EMoney - The e-money object
Example:
Status and Compliance
GetBlockStatus
Retrieve the block status of a user.The user ID
UserBlockStatus - The user block status object
GetRegulatory
Retrieve the regulatory block status of a user.The user ID
UserBlockStatus - The regulatory block status object
GetScaStatus
Retrieve the SCA status of a user.The user ID
ScaStatus - The SCA status object
ValidateTheFormatOfUserData
Check the validity of the format of user data and retrieve validation rules.The company number details to validate
CompanyNumberDetails - The validated company number details
SCA Enrollment
Enroll
Enroll an OWNER user in SCA (Strong Customer Authentication).The user ID (must be category OWNER)
Optional idempotency key
UserEnrollmentResult - Contains the redirect URL for SCA enrollment
Example:
ManageConsent
Manage user consent.The user ID
Optional idempotency key
UserConsent - The user consent object