Overview
TheApiWallets class provides methods to create, retrieve, update wallets and manage wallet transactions. Wallets are used to store funds for users in your Mangopay platform.
Methods
Create
Create a new wallet.The wallet object to create
Optional idempotency key to prevent duplicate requests
Wallet - The created wallet object
Example:
Get
Retrieve a wallet by its ID.The wallet identifier
Optional. Strong Customer Authentication context. Possible values:
USER_NOT_PRESENT- User is not present during the operationUSER_PRESENT- User is present during the operation
USER_PRESENT is used and SCA is required, an error containing the RedirectUrl will be thrownWallet - The wallet object
Example:
Update
Update an existing wallet.The wallet object to update (must have an Id)
Wallet - The updated wallet object
Example:
GetTransactions
Retrieve all transactions for a specific wallet.The wallet identifier
Pagination object to control page size and number
Filter object to filter transactions by specific criteria
Sorting object to sort the results
Transaction[] - Array of transaction objects
Example:
Wallet Entity
TheWallet class represents a wallet entity with the following properties:
Properties
Unique identifier for the wallet (read-only)
Custom data for the wallet
Unix timestamp of when the wallet was created (read-only)
Array of user IDs who own this wallet
Description of the wallet
Current balance in the wallet (read-only)Contains:
Amount(int): The amount in the wallet’s smallest currency unit (e.g., cents)Currency(string): ISO 4217 currency code (e.g., “EUR”, “USD”)
ISO 4217 currency code for the wallet (e.g., “EUR”, “USD”, “GBP”)
Example Object
Read-Only Properties
The following properties are read-only and cannot be modified:IdCreationDateBalance