const mangopayInstance = require('mangopay2-nodejs-sdk')
const mangopay = new mangopayInstance({
clientId: 'your-client-id',
clientApiKey: 'your-api-key',
})
let myWallet = {
Id: '169738660',
}
const getWalletBankingAlias = async (walletId) => {
return await mangopay.BankingAliases.getAll(walletId)
.then((response) => {
console.info(response)
return response
})
.catch((err) => {
console.log(err)
return false
})
}
getWalletBankingAlias(myWallet.Id)
[
{
"OwnerName": "MGP PlatformTradingName",
"IBAN": "FR7674521100005657670994474",
"BIC": "MPAYFRP1PIN",
"VirtualAccountPurposeResponse": "COLLECTION",
"CreditedUserId": "user_m_01HSB23417BFG7YXR7E371JSEA",
"Country": "FR",
"Tag": "Created using Mangopay API Postman Collection",
"CreationDate": 1710846581,
"Active": true,
"Type": "IBAN",
"Id": "wltbank_m_01HSB6E769Y3ZBYDJACSP3THGA",
"WalletId": "wlt_m_01HSB6DE1YT1EMTH0K7ASYPG96"
}
]
const mangopayInstance = require('mangopay2-nodejs-sdk')
const mangopay = new mangopayInstance({
clientId: 'your-client-id',
clientApiKey: 'your-api-key',
})
let myWallet = {
Id: '169738660',
}
const getWalletBankingAlias = async (walletId) => {
return await mangopay.BankingAliases.getAll(walletId)
.then((response) => {
console.info(response)
return response
})
.catch((err) => {
console.log(err)
return false
})
}
getWalletBankingAlias(myWallet.Id)
[
{
"OwnerName": "MGP PlatformTradingName",
"IBAN": "FR7674521100005657670994474",
"BIC": "MPAYFRP1PIN",
"VirtualAccountPurposeResponse": "COLLECTION",
"CreditedUserId": "user_m_01HSB23417BFG7YXR7E371JSEA",
"Country": "FR",
"Tag": "Created using Mangopay API Postman Collection",
"CreationDate": 1710846581,
"Active": true,
"Type": "IBAN",
"Id": "wltbank_m_01HSB6E769Y3ZBYDJACSP3THGA",
"WalletId": "wlt_m_01HSB6DE1YT1EMTH0K7ASYPG96"
}
]
Id and WalletId as path parameters.200
Show properties
Show properties
UserCategory of OWNER and the KYCLevel of REGULAR, then the OwnerName is set to the FirstName and LastName values for a Natural User or the Name value for a Legal User. In this case, the VirtualAccountPurpose in the API response is USER_OWNED.If the User is not KYC verified and an OWNER, then the OwnerName is set to “MGP PlatformTradingName” in standard cases, or else “Mangopay” for Marketplace Payment Extension (MPE) workflows. In this case, the VirtualAccountPurpose in the API response is COLLECTION.Caution: Your platform must ensure that you use the OwnerName returned in the API response.COLLECTION, USER_OWNEDThe type of the virtual account:COLLECTION - Owned by Mangopay and usable by platforms and/or users for the purpose of collecting and reconciling incoming funds paid by users.USER_OWNED - Owned by the wallet owner, enabling them to accept and store funds and make payments. Offering User-Owned Accounts requires your platform to sign the VOP contract amendment.CreditedUserId.false is irreversible.IBAN, GBThe type of banking alias.The GB value is only returned if the Country is GB.[
{
"OwnerName": "MGP PlatformTradingName",
"IBAN": "FR7674521100005657670994474",
"BIC": "MPAYFRP1PIN",
"VirtualAccountPurposeResponse": "COLLECTION",
"CreditedUserId": "user_m_01HSB23417BFG7YXR7E371JSEA",
"Country": "FR",
"Tag": "Created using Mangopay API Postman Collection",
"CreationDate": 1710846581,
"Active": true,
"Type": "IBAN",
"Id": "wltbank_m_01HSB6E769Y3ZBYDJACSP3THGA",
"WalletId": "wlt_m_01HSB6DE1YT1EMTH0K7ASYPG96"
}
]
const mangopayInstance = require('mangopay2-nodejs-sdk')
const mangopay = new mangopayInstance({
clientId: 'your-client-id',
clientApiKey: 'your-api-key',
})
let myWallet = {
Id: '169738660',
}
const getWalletBankingAlias = async (walletId) => {
return await mangopay.BankingAliases.getAll(walletId)
.then((response) => {
console.info(response)
return response
})
.catch((err) => {
console.log(err)
return false
})
}
getWalletBankingAlias(myWallet.Id)
Was this page helpful?