const mangopayInstance = require('mangopay2-nodejs-sdk')
const mangopay = new mangopayInstance({
clientId: 'your-client-id',
clientApiKey: 'your-api-key',
})
let myWallet = {
FundsType: 'FEES',
Currency: 'EUR',
}
const listTransactionsClientWallet = async (fundsType, currency) => {
return await mangopay.Clients.getClientWalletTransactions(fundsType, currency)
.then((response) => {
console.info(response)
return response
})
.catch((err) => {
console.log(err)
return false
})
}
listTransactionsClientWallet(myWallet.FundsType, myWallet.Currency)
[
{
"Id": "po_m_01HY343CF0KFEPKFJ0QZ4HZ2VK",
"Tag": "Custom data",
"CreationDate": 1715944403,
"AuthorId": "ExampleClientId",
"CreditedUserId": null,
"DebitedFunds": {
"Currency": "EUR",
"Amount": 7836
},
"CreditedFunds": {
"Currency": "EUR",
"Amount": 7836
},
"Fees": {
"Currency": "EUR",
"Amount": 0
},
"Status": "SUCCEEDED",
"ResultCode": "000000",
"ResultMessage": "Success",
"ExecutionDate": 1715944624,
"Type": "PAYOUT",
"Nature": "REGULAR",
"CreditedWalletId": null,
"DebitedWalletId": "FEES_EUR",
"DepositId": null
},
{
"Id": "cvr_01J2BS3XE0JE9F05MM5B6VCT15",
"Tag": "Custom data",
"CreationDate": 1720529843,
"AuthorId": "ExampleClientId",
"CreditedUserId": "ExampleClientId",
"DebitedFunds": {
"Currency": "EUR",
"Amount": 2617
},
"CreditedFunds": {
"Currency": "USD",
"Amount": 2830
},
"Fees": {
"Currency": "EUR",
"Amount": 0
},
"Status": "SUCCEEDED",
"ResultCode": "000000",
"ResultMessage": "Success",
"ExecutionDate": 1720529845,
"Type": "CONVERSION",
"Nature": "REGULAR",
"CreditedWalletId": "FEES_USD",
"DebitedWalletId": "FEES_EUR",
"DepositId": null
}
]
const mangopayInstance = require('mangopay2-nodejs-sdk')
const mangopay = new mangopayInstance({
clientId: 'your-client-id',
clientApiKey: 'your-api-key',
})
let myWallet = {
FundsType: 'FEES',
Currency: 'EUR',
}
const listTransactionsClientWallet = async (fundsType, currency) => {
return await mangopay.Clients.getClientWalletTransactions(fundsType, currency)
.then((response) => {
console.info(response)
return response
})
.catch((err) => {
console.log(err)
return false
})
}
listTransactionsClientWallet(myWallet.FundsType, myWallet.Currency)
[
{
"Id": "po_m_01HY343CF0KFEPKFJ0QZ4HZ2VK",
"Tag": "Custom data",
"CreationDate": 1715944403,
"AuthorId": "ExampleClientId",
"CreditedUserId": null,
"DebitedFunds": {
"Currency": "EUR",
"Amount": 7836
},
"CreditedFunds": {
"Currency": "EUR",
"Amount": 7836
},
"Fees": {
"Currency": "EUR",
"Amount": 0
},
"Status": "SUCCEEDED",
"ResultCode": "000000",
"ResultMessage": "Success",
"ExecutionDate": 1715944624,
"Type": "PAYOUT",
"Nature": "REGULAR",
"CreditedWalletId": null,
"DebitedWalletId": "FEES_EUR",
"DepositId": null
},
{
"Id": "cvr_01J2BS3XE0JE9F05MM5B6VCT15",
"Tag": "Custom data",
"CreationDate": 1720529843,
"AuthorId": "ExampleClientId",
"CreditedUserId": "ExampleClientId",
"DebitedFunds": {
"Currency": "EUR",
"Amount": 2617
},
"CreditedFunds": {
"Currency": "USD",
"Amount": 2830
},
"Fees": {
"Currency": "EUR",
"Amount": 0
},
"Status": "SUCCEEDED",
"ResultCode": "000000",
"ResultMessage": "Success",
"ExecutionDate": 1720529845,
"Type": "CONVERSION",
"Nature": "REGULAR",
"CreditedWalletId": "FEES_USD",
"DebitedWalletId": "FEES_EUR",
"DepositId": null
}
]
FEES_CCY
)CREDIT_CCY
)FEES
, CREDIT
The type of funds in the Client Wallet:FEES
– Fees Wallet, for fees collected by the platform, specific to the Client Wallet object.CREDIT
– Repudiation Wallet, for funds for the platform’s dispute management, specific to the Client Wallet object.200
Show properties
Show properties
Show properties
1260
whereas JPY 12 would be represented as just 12
).During a conversion, (DebitedFunds.Amount
- Fees
) * MarketRate
= CreditedFunds.Amount
. CreditedFunds
= DebitedFunds
- Fees
).Show properties
1260
whereas JPY 12 would be represented as just 12
).Show properties
1260
whereas JPY 12 would be represented as just 12
).CREATED
, SUCCEEDED
, FAILED
The status of the transaction.SUCCEEDED
, indicating that the transaction occurred. The statuses CREATED
and FAILED
return an ExecutionDate
of null
.REGULAR
, REPUDIATION
, REFUND
, SETTLEMENT
The nature of the transaction, providing more information about the context in which the transaction occurred:REGULAR
– Relative to most of the transactions (pay-ins, payouts, and transfers) in a usual workflow.REPUDIATION
– Automatic withdrawal of funds from the platform’s repudiation wallet as part of the dispute process (when the user has requested a chargeback).REFUND
– Reimbursement of a transaction to the user (pay-in refund), to a wallet (transfer refund), or of a payout (payout refund, only initiated by Mangopay).SETTLEMENT
– Transfer made to the repudiation wallet by the platform to settle a lost dispute.[
{
"Id": "po_m_01HY343CF0KFEPKFJ0QZ4HZ2VK",
"Tag": "Custom data",
"CreationDate": 1715944403,
"AuthorId": "ExampleClientId",
"CreditedUserId": null,
"DebitedFunds": {
"Currency": "EUR",
"Amount": 7836
},
"CreditedFunds": {
"Currency": "EUR",
"Amount": 7836
},
"Fees": {
"Currency": "EUR",
"Amount": 0
},
"Status": "SUCCEEDED",
"ResultCode": "000000",
"ResultMessage": "Success",
"ExecutionDate": 1715944624,
"Type": "PAYOUT",
"Nature": "REGULAR",
"CreditedWalletId": null,
"DebitedWalletId": "FEES_EUR",
"DepositId": null
},
{
"Id": "cvr_01J2BS3XE0JE9F05MM5B6VCT15",
"Tag": "Custom data",
"CreationDate": 1720529843,
"AuthorId": "ExampleClientId",
"CreditedUserId": "ExampleClientId",
"DebitedFunds": {
"Currency": "EUR",
"Amount": 2617
},
"CreditedFunds": {
"Currency": "USD",
"Amount": 2830
},
"Fees": {
"Currency": "EUR",
"Amount": 0
},
"Status": "SUCCEEDED",
"ResultCode": "000000",
"ResultMessage": "Success",
"ExecutionDate": 1720529845,
"Type": "CONVERSION",
"Nature": "REGULAR",
"CreditedWalletId": "FEES_USD",
"DebitedWalletId": "FEES_EUR",
"DepositId": null
}
]
const mangopayInstance = require('mangopay2-nodejs-sdk')
const mangopay = new mangopayInstance({
clientId: 'your-client-id',
clientApiKey: 'your-api-key',
})
let myWallet = {
FundsType: 'FEES',
Currency: 'EUR',
}
const listTransactionsClientWallet = async (fundsType, currency) => {
return await mangopay.Clients.getClientWalletTransactions(fundsType, currency)
.then((response) => {
console.info(response)
return response
})
.catch((err) => {
console.log(err)
return false
})
}
listTransactionsClientWallet(myWallet.FundsType, myWallet.Currency)
Was this page helpful?