Overview
User management
- Users
- User regulatory status
- User e-money
User verification
- User data format
- KYC documents
- UBO declarations
Wallets
- User wallets
- Client wallets
Cards
- Card registrations
- Cards
- Metadata
- Card validations
Card pay-ins
- Direct card pay-ins
- Recurring card pay-ins
- Preauthorizations
- Deposit preauthorizations
- Web card pay-ins
Banking pay-ins
- Bank wires
- Virtual IBAN
- Direct debits
- Web direct debits
APM pay-ins
- Apple Pay
- Bancontact
- BLIK
- Giropay
- Google Pay
- iDEAL
- Klarna
- MB WAY
- Multibanco
- Payconiq
- PayPal
- Satispay
- Swish
- TWINT
Transfers
- Transfers
Refunds
- Refunds
Disputes
- Disputes
- Dispute documents
- Repudiations
- Dispute settlement
Payouts
- Bank accounts
- Payouts
FX conversions
- Conversion rates
- Quotes
- Conversions
Transactions
- Transactions
- The Transaction object
- GETList Transactions for a User
- GETList Transactions for a Wallet
- GETList Transactions for a Client Wallet
- GETList Transactions for a Card
- GETList Transactions for a Card Fingerprint
- GETList Transactions for a Preauthorization
- GETList Transactions for a Deposit Preauthorization
- GETList Transactions for a Bank Account
- GETList Transactions for a Mandate
- GETList Transactions for a Dispute
Helpers
- API responses
- Country authorizations
- Webhooks
- Events
- Reports
Platform account
- Client
- Dashboard permissions
List Transactions for a Wallet
<?php
require_once 'vendor/autoload.php';
use MangoPay\MangoPayApi;
use MangoPay\Libraries\ResponseException as MGPResponseException;
use MangoPay\Libraries\Exception as MGPException;
$api = new MangoPayApi();
$api->Config->ClientId = 'your-client-id';
$api->Config->ClientPassword = 'your-api-key';
$api->Config->TemporaryFolder = 'tmp/';
try {
$walletId = '148968396';
$response = $api->Wallets->GetTransactions($walletId);
print_r($response);
} catch(MGPResponseException $e) {
print_r($e);
} catch(MGPException $e) {
print_r($e);
}
[
{
"Id": "xfer_m_01J8F1J0KBFTRP5CMYMFFTG4W4",
"Tag": "Created using Mangopay API Postman Collection",
"CreationDate": 1727081808,
"AuthorId": "user_m_01HSDQD2RPPQ8NMM36EDGYBMEY",
"CreditedUserId": "user_m_01HSDQD2RPPQ8NMM36EDGYBMEY",
"DebitedFunds": {
"Currency": "EUR",
"Amount": 500
},
"CreditedFunds": {
"Currency": "EUR",
"Amount": 490
},
"Fees": {
"Currency": "EUR",
"Amount": 10
},
"Status": "SUCCEEDED",
"ResultCode": "000000",
"ResultMessage": "Success",
"ExecutionDate": 1727081809,
"Type": "TRANSFER",
"Nature": "REGULAR",
"CreditedWalletId": "wlt_m_01HT03YR6YRBT1EGK1FYDDBZM9",
"DebitedWalletId": "wlt_m_01HW8AS48VH6MRXVT44RKK5RW1",
"DepositId": null
},
{
"Id": "refund_m_01J8F1JZ6XCEFCZ71W34N9DWRR",
"Tag": "Created using Mangopay API Postman Collection",
"CreationDate": 1727081839,
"AuthorId": "user_m_01HSDQD2RPPQ8NMM36EDGYBMEY",
"CreditedUserId": null,
"DebitedFunds": {
"Currency": "EUR",
"Amount": 490
},
"CreditedFunds": {
"Currency": "EUR",
"Amount": 500
},
"Fees": {
"Currency": "EUR",
"Amount": -10
},
"Status": "SUCCEEDED",
"ResultCode": "000000",
"ResultMessage": "Success",
"ExecutionDate": 1727081840,
"Type": "TRANSFER",
"Nature": "REFUND",
"CreditedWalletId": "wlt_m_01HW8AS48VH6MRXVT44RKK5RW1",
"DebitedWalletId": "wlt_m_01HT03YR6YRBT1EGK1FYDDBZM9",
"DepositId": null
}
]
This call returns all the transactions (pay-in, transfers, and payouts) of a given wallet.
Query parameters
Allowed values: CREATED
, SUCCEEDED
, FAILED
The status of the transaction. You can filter on multiple values by separating them with a comma.
The code indicating the result of the operation. You can filter on multiple values by separating them with a comma.
The date before which the transaction was created (based on the transaction’s CreationDate
parameter). You can filter on a specific time range by using both the AfterDate
and BeforeDate
query parameters.
The date after which the transaction was created (based on the transaction’s CreationDate
parameter). You can filter on a specific time range by using both the AfterDate
and BeforeDate
query parameters.
Allowed values: PAYIN
, TRANSFER
, CONVERSION
, PAYOUT
The type of the transaction. You can filter on multiple values by separating them with a comma.
Allowed values: REGULAR
, REPUDIATION
, REFUND
, SETTLEMENT
The nature of the transaction, providing more information about the context in which the transaction occurred. You can filter on multiple values by separating them with a comma.
Path parameters
The unique identifier of the wallet.
Responses
The list of transactions created by the platform.
The transaction created by the platform.
The unique identifier of the object.
Max. length: 255 characters
Custom data that you can add to this object.
For transactions (pay-in, transfer, payout), you can use this parameter to identify corresponding information regarding the user, transaction, or payment methods on your platform.
The date and time at which the object was created.
The unique identifier of the user at the source of the transaction.
Default value: The unique identifier of the owner of the credited wallet.
The unique identifier of the user whose wallet is credited.
Information about the debited funds.
Returned values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).
The currency of the debited funds (the sell currency).
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as 1260
whereas JPY 12 would be represented as just 12
).
During a conversion, (DebitedFunds.Amount
- Fees
) * MarketRate
= CreditedFunds.Amount
.
Information about the credited funds (CreditedFunds
= DebitedFunds
- Fees
).
Returned values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).
The currency of the credited funds.
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as 1260
whereas JPY 12 would be represented as just 12
).
Information about the fees taken by the platform for this transaction (and hence transferred to the Fees Wallet).
Returned values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).
The currency of the fees.
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as 1260
whereas JPY 12 would be represented as just 12
).
Returned values: CREATED
, SUCCEEDED
, FAILED
The status of the transaction.
The code indicating the result of the operation. This information is mostly used to handle errors or for filtering purposes.
The explanation of the result code.
The date and time at which the status changed to SUCCEEDED
, indicating that the transaction occurred. The statuses CREATED
and FAILED
return an ExecutionDate
of null
.
The type of transaction.
Returned values: 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.
The unique identifier of the credited wallet.
The unique identifier of the debited wallet.
[
{
"Id": "xfer_m_01J8F1J0KBFTRP5CMYMFFTG4W4",
"Tag": "Created using Mangopay API Postman Collection",
"CreationDate": 1727081808,
"AuthorId": "user_m_01HSDQD2RPPQ8NMM36EDGYBMEY",
"CreditedUserId": "user_m_01HSDQD2RPPQ8NMM36EDGYBMEY",
"DebitedFunds": {
"Currency": "EUR",
"Amount": 500
},
"CreditedFunds": {
"Currency": "EUR",
"Amount": 490
},
"Fees": {
"Currency": "EUR",
"Amount": 10
},
"Status": "SUCCEEDED",
"ResultCode": "000000",
"ResultMessage": "Success",
"ExecutionDate": 1727081809,
"Type": "TRANSFER",
"Nature": "REGULAR",
"CreditedWalletId": "wlt_m_01HT03YR6YRBT1EGK1FYDDBZM9",
"DebitedWalletId": "wlt_m_01HW8AS48VH6MRXVT44RKK5RW1",
"DepositId": null
},
{
"Id": "refund_m_01J8F1JZ6XCEFCZ71W34N9DWRR",
"Tag": "Created using Mangopay API Postman Collection",
"CreationDate": 1727081839,
"AuthorId": "user_m_01HSDQD2RPPQ8NMM36EDGYBMEY",
"CreditedUserId": null,
"DebitedFunds": {
"Currency": "EUR",
"Amount": 490
},
"CreditedFunds": {
"Currency": "EUR",
"Amount": 500
},
"Fees": {
"Currency": "EUR",
"Amount": -10
},
"Status": "SUCCEEDED",
"ResultCode": "000000",
"ResultMessage": "Success",
"ExecutionDate": 1727081840,
"Type": "TRANSFER",
"Nature": "REFUND",
"CreditedWalletId": "wlt_m_01HW8AS48VH6MRXVT44RKK5RW1",
"DebitedWalletId": "wlt_m_01HT03YR6YRBT1EGK1FYDDBZM9",
"DepositId": null
}
]
<?php
require_once 'vendor/autoload.php';
use MangoPay\MangoPayApi;
use MangoPay\Libraries\ResponseException as MGPResponseException;
use MangoPay\Libraries\Exception as MGPException;
$api = new MangoPayApi();
$api->Config->ClientId = 'your-client-id';
$api->Config->ClientPassword = 'your-api-key';
$api->Config->TemporaryFolder = 'tmp/';
try {
$walletId = '148968396';
$response = $api->Wallets->GetTransactions($walletId);
print_r($response);
} catch(MGPResponseException $e) {
print_r($e);
} catch(MGPException $e) {
print_r($e);
}
Was this page helpful?
<?php
require_once 'vendor/autoload.php';
use MangoPay\MangoPayApi;
use MangoPay\Libraries\ResponseException as MGPResponseException;
use MangoPay\Libraries\Exception as MGPException;
$api = new MangoPayApi();
$api->Config->ClientId = 'your-client-id';
$api->Config->ClientPassword = 'your-api-key';
$api->Config->TemporaryFolder = 'tmp/';
try {
$walletId = '148968396';
$response = $api->Wallets->GetTransactions($walletId);
print_r($response);
} catch(MGPResponseException $e) {
print_r($e);
} catch(MGPException $e) {
print_r($e);
}
[
{
"Id": "xfer_m_01J8F1J0KBFTRP5CMYMFFTG4W4",
"Tag": "Created using Mangopay API Postman Collection",
"CreationDate": 1727081808,
"AuthorId": "user_m_01HSDQD2RPPQ8NMM36EDGYBMEY",
"CreditedUserId": "user_m_01HSDQD2RPPQ8NMM36EDGYBMEY",
"DebitedFunds": {
"Currency": "EUR",
"Amount": 500
},
"CreditedFunds": {
"Currency": "EUR",
"Amount": 490
},
"Fees": {
"Currency": "EUR",
"Amount": 10
},
"Status": "SUCCEEDED",
"ResultCode": "000000",
"ResultMessage": "Success",
"ExecutionDate": 1727081809,
"Type": "TRANSFER",
"Nature": "REGULAR",
"CreditedWalletId": "wlt_m_01HT03YR6YRBT1EGK1FYDDBZM9",
"DebitedWalletId": "wlt_m_01HW8AS48VH6MRXVT44RKK5RW1",
"DepositId": null
},
{
"Id": "refund_m_01J8F1JZ6XCEFCZ71W34N9DWRR",
"Tag": "Created using Mangopay API Postman Collection",
"CreationDate": 1727081839,
"AuthorId": "user_m_01HSDQD2RPPQ8NMM36EDGYBMEY",
"CreditedUserId": null,
"DebitedFunds": {
"Currency": "EUR",
"Amount": 490
},
"CreditedFunds": {
"Currency": "EUR",
"Amount": 500
},
"Fees": {
"Currency": "EUR",
"Amount": -10
},
"Status": "SUCCEEDED",
"ResultCode": "000000",
"ResultMessage": "Success",
"ExecutionDate": 1727081840,
"Type": "TRANSFER",
"Nature": "REFUND",
"CreditedWalletId": "wlt_m_01HW8AS48VH6MRXVT44RKK5RW1",
"DebitedWalletId": "wlt_m_01HT03YR6YRBT1EGK1FYDDBZM9",
"DepositId": null
}
]