{
"Tag": "Created using Mangopay API Postman Collection",
"AuthorId": "user_m_01KF3087EDXEAK8VPD9DTMZW8N",
"DebitedFunds": {
"Currency": "EUR",
"Amount": 5792
},
"Fees": {
"Currency": "EUR",
"Amount": 579
},
"DebitedWalletId": "wlt_m_01KF30AN0HCMPPCGEEGY4DCBGZ",
"RecipientId": "rec_01KF0MPAA8X9C80Q394TSF7MEY",
"BankWireRef": "Example123"
}
{
"Tag": "Created using Mangopay API Postman Collection",
"AuthorId": "204069570",
"DebitedFunds": {
"Currency": "EUR",
"Amount": 3387
},
"Fees": {
"Currency": "EUR",
"Amount": 339
},
"DebitedWalletId": "204069727",
"BankAccountId": "204070675",
"BankWireRef": "Example123",
"PayoutModeRequested": "INSTANT_PAYMENT_ONLY"
}
{
"Tag": "Created using Mangopay API Postman Collection",
"AuthorId": "user_m_01JKWYDT94N91CW572D7QNNYRP",
"DebitedFunds": {
"Currency": "EUR",
"Amount": 1135
},
"Fees": {
"Currency": "EUR",
"Amount": 113
},
"DebitedWalletId": "wlt_m_01JMAAKGM0VCBCQ5V4DB3EZPER",
"BankAccountId": "bankacc_m_01JMCS94W97ZM6XF5HR0KEVSGV",
"BankWireRef": "Example123",
"PayoutModeRequested": "RTGS_PAYMENT"
}
{
"AuthorId": "user_m_01JCQYJNHFPENP1SKTCBYER0F8",
"Tag": "Created using Mangopay API Postman Collection",
"DebitedFunds": {
"Currency": "EUR",
"Amount": 24581
},
"Fees": {
"Currency": "EUR",
"Amount": 0
},
"DebitedWalletId": "wlt_m_01J9KR4A7BH8KVE4PG6DTNS817",
"BankAccountId": "bankacc_m_01JCN1X2EHWG0JNJNPNQ21CW5G",
"BankWireRef": "Example123",
"PaymentRef": {
"ReasonType": "PAYIN_REFUND",
"ReferenceId": "payin_m_01JCR21X56KVHF7F5TVGYNT9G7"
}
}
<?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 {
$payout = new \MangoPay\PayOut();
$payout->Tag = 'Created with Mangopay PHP SDK';
$payout->AuthorId = '146476890';
$payout->DebitedFunds = new \MangoPay\Money();
$payout->DebitedFunds->Currency = 'EUR';
$payout->DebitedFunds->Amount = 1000;
$payout->Fees = new \MangoPay\Money();
$payout->Fees->Currency = 'EUR';
$payout->Fees->Amount = 0;
$payout->DebitedWalletId = '148968396';
$payout->PayoutPaymentDetails = new \MangoPay\PayOutPaymentDetailsBankWire();
$payout->MeanOfPaymentDetails->BankAccountId = '198982485';
$payout->MeanOfPaymentDetails->BankWireRef = 'MangopayPHP';
$payout->MeanOfPaymentDetails = $payout->PayoutPaymentDetails;
$payout->PaymentType = \MangoPay\PayOutPaymentType::BankWire;
$payout->PayoutModeRequested = 'STANDARD';
$response = $api->PayOuts->Create($payout);
print_r($response);
} catch(MGPResponseException $e) {
print_r($e);
} catch(MGPException $e) {
print_r($e);
}
const mangopayInstance = require('mangopay4-nodejs-sdk')
const mangopay = new mangopayInstance({
clientId: 'your-client-id',
clientApiKey: 'your-api-key',
})
let myUser = {
Id: '146476890',
WalletId: '148968396',
}
let myBankAccount = {
Id: '154876798',
}
let myPayout = {
DebitedWalletId: myUser.WalletId,
PaymentType: 'BANK_WIRE',
BankAccountId: myBankAccount.Id,
BankWireRef: 'Mangopay Ref',
PayoutModeRequested: 'STANDARD',
AuthorId: myUser.Id,
DebitedFunds: {
Currency: 'EUR',
Amount: 12,
},
Fees: {
Currency: 'EUR',
Amount: 0,
},
Tag: 'Created using Mangopay NodeJS SDK',
}
const createPayout = async (payout) => {
return await mangopay.PayOuts.create(payout)
.then((response) => {
console.info(response)
return response
})
.catch((err) => {
console.log(err)
return false
})
}
createPayout(myPayout)
require 'mangopay'
MangoPay.configure do |client|
client.preproduction = true
client.client_id = 'your-client-id'
client.client_apiKey = 'your-api-key'
client.log_file = File.join(Dir.pwd, 'mangopay.log')
end
def createPayout(payoutObject)
begin
response = MangoPay::PayOut::BankWire.create(payoutObject)
puts response
return response
rescue MangoPay::ResponseError => error
puts "Failed to create payout: #{error.message}"
puts "Error details: #{error.details}"
return false
end
end
myUser = {
Id: '146476890',
WalletId: '148968396'
}
myBankAccount = {
Id: '154876798'
}
myPayout = {
DebitedWalletId: myUser[:WalletId],
PaymentType: 'BANK_WIRE',
BankAccountId: myBankAccount[:Id],
BankWireRef: 'Mangopay Ref',
PayoutModeRequested: 'STANDARD',
AuthorId: myUser[:Id],
DebitedFunds: {
Currency: 'EUR',
Amount: 1200,
},
Fees: {
Currency: 'EUR',
Amount: 0,
},
Tag: 'Created using Mangopay Ruby SDK'
}
createPayout(myPayout)
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.mangopay.MangoPayApi;
import com.mangopay.core.Money;
import com.mangopay.core.enumerations.CurrencyIso;
import com.mangopay.core.enumerations.PayoutMode;
import com.mangopay.entities.PayOut;
import com.mangopay.entities.subentities.PayOutPaymentDetailsBankWire;
public class CreatePayout {
public static void main(String[] args) throws Exception {
MangoPayApi mangopay = new MangoPayApi();
mangopay.getConfig().setClientId("your-client-id");
mangopay.getConfig().setClientPassword("your-api-key");
var userId = "user_m_01HQK25M6KVHKDV0S36JY9NRKR";
var walletId = "wlt_m_01HQT6422EER2N7FPRXWTSDCSV";
var bankAccountId = "bankacc_m_01HTJ7P7Y8K9DS5SZ08MDQRHHE";
PayOut payout = new PayOut();
payout.setAuthorId(userId);
payout.setDebitedWalletId(walletId);
payout.setDebitedFunds(new Money(CurrencyIso.EUR, 500));
payout.setFees(new Money(CurrencyIso.EUR, 0));
PayOutPaymentDetailsBankWire paymentDetails = new PayOutPaymentDetailsBankWire();
paymentDetails.setBankAccountId(bankAccountId);
paymentDetails.setPayoutModeRequested(PayoutMode.STANDARD);
payout.setMeanOfPaymentDetails(paymentDetails);
PayOut createPayout = mangopay.getPayOutApi().create(payout);
Gson prettyPrint = new GsonBuilder().setPrettyPrinting().create();
String prettyJson = prettyPrint.toJson(createPayout);
System.out.println(prettyJson);
}
}
from pprint import pprint
import mangopay
mangopay.client_id='your-client-id'
mangopay.apikey='your-api-key'
from mangopay.api import APIRequest
handler = APIRequest(sandbox=True)
from mangopay.resources import BankWirePayOut
from mangopay.utils import Money
natural_user_id = '213753890'
natural_user_wallet_id = '213754077'
payout = BankWirePayOut(
author_id = natural_user_id,
debited_funds = Money(amount=200, currency='EUR'),
fees = Money(amount=0, currency='EUR'),
debited_wallet_id = natural_user_wallet_id,
bank_account_id = '214651521',
tag = 'Created using Mangopay Python SDK'
)
create_payout = payout.save()
pprint(create_payout)
using MangoPay.SDK;
using MangoPay.SDK.Entities;
using MangoPay.SDK.Entities.POST;
using MangoPay.SDK.Core.Enumerations;
using Newtonsoft.Json;
class Program
{
static async Task Main(string[] args)
{
MangoPayApi api = new MangoPayApi();
api.Config.ClientId = "your-client-id";
api.Config.ClientPassword = "your-api-key";
var userId = "user_m_01J2TZ261WZNDM0ZDRWGDYA4GN";
var bankAccountId = "bankacc_m_01J534QNZZSRCXXAJ1VXP58DDH";
var walletId = "wlt_m_01J30991BXBB7VF28PBS82EWD3";
var debitedFunds = new Money { Amount = 2000, Currency = CurrencyIso.EUR };
var fees = new Money { Amount = 50, Currency = CurrencyIso.EUR };
var bankWireRef = "Example123";
var payout = new PayOutBankWirePostDTO(
userId,
walletId,
debitedFunds,
fees,
bankAccountId,
bankWireRef,
PayoutModeRequested.STANDARD
) {
Tag = "Created using the Mangopay .NET SDK"
};
var createPayout = await api.PayOuts.CreateBankWireAsync(payout);
string prettyPrint = JsonConvert.SerializeObject(createPayout, Formatting.Indented);
Console.WriteLine(prettyPrint);
}
}
{
"Id": "po_m_01HQMZSGSQPPXC51TZHDAYFAJF",
"Tag": "Created using Mangopay API Postman Collection",
"CreationDate": 1709027672,
"AuthorId": "204069570",
"CreditedUserId": null,
"DebitedFunds": {
"Currency": "EUR",
"Amount": 5792
},
"CreditedFunds": {
"Currency": "EUR",
"Amount": 5213
},
"Fees": {
"Currency": "EUR",
"Amount": 579
},
"Status": "CREATED",
"ResultCode": null,
"ResultMessage": null,
"ExecutionDate": null,
"Type": "PAYOUT",
"Nature": "REGULAR",
"CreditedWalletId": null,
"DebitedWalletId": "204069727",
"PaymentType": "BANK_WIRE",
"BankAccountId": null,
"BankWireRef": "Example123",
"ModeRequested": null,
"ModeApplied": "PENDING_RESPONSE",
"FallbackReason": null,
"EndToEndId": "2c2184396eef4e5da90ab48a2feeb51d",
"PaymentRef": null,
"RecipientVerificationOfPayee": null,
"RecipientId": "rec_01KF0MPAA8X9C80Q394TSF7MEY",
"ChargeBearer": "OUR"
}
{
"Id": "po_m_01HQMZZV376RRXYQGQAHZ4TN9K",
"Tag": "Created using Mangopay API Postman Collection",
"CreationDate": 1709027880,
"AuthorId": "204069570",
"CreditedUserId": null,
"DebitedFunds": {
"Currency": "EUR",
"Amount": 3387
},
"CreditedFunds": {
"Currency": "EUR",
"Amount": 3048
},
"Fees": {
"Currency": "EUR",
"Amount": 339
},
"Status": "CREATED",
"ResultCode": null,
"ResultMessage": null,
"ExecutionDate": null,
"Type": "PAYOUT",
"Nature": "REGULAR",
"CreditedWalletId": null,
"DebitedWalletId": "204069727",
"PaymentType": "BANK_WIRE",
"BankAccountId": null,
"BankWireRef": "Example123",
"ModeRequested": "INSTANT_PAYMENT_ONLY",
"ModeApplied": "PENDING_RESPONSE",
"FallbackReason": null,
"EndToEndId": "e8052ae4729f4abe9355442020f411a9",
"PaymentRef": null,
"RecipientVerificationOfPayee": null,
"RecipientId": "rec_01KF0MPAA8X9C80Q394TSF7MEY"
}
{
"Id": "po_m_01JMCS9ED9YTYZBJ3CH0GEMEDS",
"Tag": "Created using Mangopay API Postman Collection",
"CreationDate": 1739890932,
"AuthorId": "user_m_01JKWYDT94N91CW572D7QNNYRP",
"CreditedUserId": null,
"DebitedFunds": {
"Currency": "EUR",
"Amount": 1135
},
"CreditedFunds": {
"Currency": "EUR",
"Amount": 1022
},
"Fees": {
"Currency": "EUR",
"Amount": 113
},
"Status": "CREATED",
"ResultCode": null,
"ResultMessage": null,
"ExecutionDate": null,
"Type": "PAYOUT",
"Nature": "REGULAR",
"CreditedWalletId": null,
"DebitedWalletId": "wlt_m_01JMAAKGM0VCBCQ5V4DB3EZPER",
"PaymentType": "BANK_WIRE",
"BankAccountId": null,
"BankWireRef": "Example123",
"ModeRequested": "RTGS_PAYMENT",
"ModeApplied": "PENDING_RESPONSE",
"FallbackReason": null,
"EndToEndId": "a66784a74c7b4357bbe4f10abccbe411",
"PaymentRef": null,
"RecipientVerificationOfPayee": null,
"RecipientId": "rec_01KF0MPAA8X9C80Q394TSF7MEY"
}
{
"Id": "po_b_01JCR32EMBXRWNWRN5KVW2DXE1",
"Tag": "Created using Mangopay API Postman Collection",
"CreationDate": 1731680352,
"AuthorId": "user_m_01JCQYJNHFPENP1SKTCBYER0F8",
"CreditedUserId": null,
"DebitedFunds": {
"Currency": "EUR",
"Amount": 24581
},
"CreditedFunds": {
"Currency": "EUR",
"Amount": 24581
},
"Fees": {
"Currency": "EUR",
"Amount": 0
},
"Status": "CREATED",
"ResultCode": null,
"ResultMessage": null,
"ExecutionDate": null,
"Type": "PAYOUT",
"Nature": "REGULAR",
"CreditedWalletId": null,
"DebitedWalletId": "wlt_m_01J9KR4A7BH8KVE4PG6DTNS817",
"PaymentType": "BANK_WIRE",
"BankAccountId": null,
"BankWireRef": "Example123",
"ModeRequested": null,
"ModeApplied": "STANDARD",
"FallbackReason": null,
"EndToEndId": "2da75c747abf4fbd83d6fd746d63fad4",
"PaymentRef": {
"ReasonType": "PAYIN_REFUND",
"ReferenceId": "payin_m_01JCR21X56KVHF7F5TVGYNT9G7"
},
"RecipientVerificationOfPayee": null,
"RecipientId": "rec_01KF0MPAA8X9C80Q394TSF7MEY"
}
Payouts
Create a Payout
POST
/
v2.01
/
{ClientId}
/
payouts
/
bankwire
{
"Tag": "Created using Mangopay API Postman Collection",
"AuthorId": "user_m_01KF3087EDXEAK8VPD9DTMZW8N",
"DebitedFunds": {
"Currency": "EUR",
"Amount": 5792
},
"Fees": {
"Currency": "EUR",
"Amount": 579
},
"DebitedWalletId": "wlt_m_01KF30AN0HCMPPCGEEGY4DCBGZ",
"RecipientId": "rec_01KF0MPAA8X9C80Q394TSF7MEY",
"BankWireRef": "Example123"
}
{
"Tag": "Created using Mangopay API Postman Collection",
"AuthorId": "204069570",
"DebitedFunds": {
"Currency": "EUR",
"Amount": 3387
},
"Fees": {
"Currency": "EUR",
"Amount": 339
},
"DebitedWalletId": "204069727",
"BankAccountId": "204070675",
"BankWireRef": "Example123",
"PayoutModeRequested": "INSTANT_PAYMENT_ONLY"
}
{
"Tag": "Created using Mangopay API Postman Collection",
"AuthorId": "user_m_01JKWYDT94N91CW572D7QNNYRP",
"DebitedFunds": {
"Currency": "EUR",
"Amount": 1135
},
"Fees": {
"Currency": "EUR",
"Amount": 113
},
"DebitedWalletId": "wlt_m_01JMAAKGM0VCBCQ5V4DB3EZPER",
"BankAccountId": "bankacc_m_01JMCS94W97ZM6XF5HR0KEVSGV",
"BankWireRef": "Example123",
"PayoutModeRequested": "RTGS_PAYMENT"
}
{
"AuthorId": "user_m_01JCQYJNHFPENP1SKTCBYER0F8",
"Tag": "Created using Mangopay API Postman Collection",
"DebitedFunds": {
"Currency": "EUR",
"Amount": 24581
},
"Fees": {
"Currency": "EUR",
"Amount": 0
},
"DebitedWalletId": "wlt_m_01J9KR4A7BH8KVE4PG6DTNS817",
"BankAccountId": "bankacc_m_01JCN1X2EHWG0JNJNPNQ21CW5G",
"BankWireRef": "Example123",
"PaymentRef": {
"ReasonType": "PAYIN_REFUND",
"ReferenceId": "payin_m_01JCR21X56KVHF7F5TVGYNT9G7"
}
}
<?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 {
$payout = new \MangoPay\PayOut();
$payout->Tag = 'Created with Mangopay PHP SDK';
$payout->AuthorId = '146476890';
$payout->DebitedFunds = new \MangoPay\Money();
$payout->DebitedFunds->Currency = 'EUR';
$payout->DebitedFunds->Amount = 1000;
$payout->Fees = new \MangoPay\Money();
$payout->Fees->Currency = 'EUR';
$payout->Fees->Amount = 0;
$payout->DebitedWalletId = '148968396';
$payout->PayoutPaymentDetails = new \MangoPay\PayOutPaymentDetailsBankWire();
$payout->MeanOfPaymentDetails->BankAccountId = '198982485';
$payout->MeanOfPaymentDetails->BankWireRef = 'MangopayPHP';
$payout->MeanOfPaymentDetails = $payout->PayoutPaymentDetails;
$payout->PaymentType = \MangoPay\PayOutPaymentType::BankWire;
$payout->PayoutModeRequested = 'STANDARD';
$response = $api->PayOuts->Create($payout);
print_r($response);
} catch(MGPResponseException $e) {
print_r($e);
} catch(MGPException $e) {
print_r($e);
}
const mangopayInstance = require('mangopay4-nodejs-sdk')
const mangopay = new mangopayInstance({
clientId: 'your-client-id',
clientApiKey: 'your-api-key',
})
let myUser = {
Id: '146476890',
WalletId: '148968396',
}
let myBankAccount = {
Id: '154876798',
}
let myPayout = {
DebitedWalletId: myUser.WalletId,
PaymentType: 'BANK_WIRE',
BankAccountId: myBankAccount.Id,
BankWireRef: 'Mangopay Ref',
PayoutModeRequested: 'STANDARD',
AuthorId: myUser.Id,
DebitedFunds: {
Currency: 'EUR',
Amount: 12,
},
Fees: {
Currency: 'EUR',
Amount: 0,
},
Tag: 'Created using Mangopay NodeJS SDK',
}
const createPayout = async (payout) => {
return await mangopay.PayOuts.create(payout)
.then((response) => {
console.info(response)
return response
})
.catch((err) => {
console.log(err)
return false
})
}
createPayout(myPayout)
require 'mangopay'
MangoPay.configure do |client|
client.preproduction = true
client.client_id = 'your-client-id'
client.client_apiKey = 'your-api-key'
client.log_file = File.join(Dir.pwd, 'mangopay.log')
end
def createPayout(payoutObject)
begin
response = MangoPay::PayOut::BankWire.create(payoutObject)
puts response
return response
rescue MangoPay::ResponseError => error
puts "Failed to create payout: #{error.message}"
puts "Error details: #{error.details}"
return false
end
end
myUser = {
Id: '146476890',
WalletId: '148968396'
}
myBankAccount = {
Id: '154876798'
}
myPayout = {
DebitedWalletId: myUser[:WalletId],
PaymentType: 'BANK_WIRE',
BankAccountId: myBankAccount[:Id],
BankWireRef: 'Mangopay Ref',
PayoutModeRequested: 'STANDARD',
AuthorId: myUser[:Id],
DebitedFunds: {
Currency: 'EUR',
Amount: 1200,
},
Fees: {
Currency: 'EUR',
Amount: 0,
},
Tag: 'Created using Mangopay Ruby SDK'
}
createPayout(myPayout)
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.mangopay.MangoPayApi;
import com.mangopay.core.Money;
import com.mangopay.core.enumerations.CurrencyIso;
import com.mangopay.core.enumerations.PayoutMode;
import com.mangopay.entities.PayOut;
import com.mangopay.entities.subentities.PayOutPaymentDetailsBankWire;
public class CreatePayout {
public static void main(String[] args) throws Exception {
MangoPayApi mangopay = new MangoPayApi();
mangopay.getConfig().setClientId("your-client-id");
mangopay.getConfig().setClientPassword("your-api-key");
var userId = "user_m_01HQK25M6KVHKDV0S36JY9NRKR";
var walletId = "wlt_m_01HQT6422EER2N7FPRXWTSDCSV";
var bankAccountId = "bankacc_m_01HTJ7P7Y8K9DS5SZ08MDQRHHE";
PayOut payout = new PayOut();
payout.setAuthorId(userId);
payout.setDebitedWalletId(walletId);
payout.setDebitedFunds(new Money(CurrencyIso.EUR, 500));
payout.setFees(new Money(CurrencyIso.EUR, 0));
PayOutPaymentDetailsBankWire paymentDetails = new PayOutPaymentDetailsBankWire();
paymentDetails.setBankAccountId(bankAccountId);
paymentDetails.setPayoutModeRequested(PayoutMode.STANDARD);
payout.setMeanOfPaymentDetails(paymentDetails);
PayOut createPayout = mangopay.getPayOutApi().create(payout);
Gson prettyPrint = new GsonBuilder().setPrettyPrinting().create();
String prettyJson = prettyPrint.toJson(createPayout);
System.out.println(prettyJson);
}
}
from pprint import pprint
import mangopay
mangopay.client_id='your-client-id'
mangopay.apikey='your-api-key'
from mangopay.api import APIRequest
handler = APIRequest(sandbox=True)
from mangopay.resources import BankWirePayOut
from mangopay.utils import Money
natural_user_id = '213753890'
natural_user_wallet_id = '213754077'
payout = BankWirePayOut(
author_id = natural_user_id,
debited_funds = Money(amount=200, currency='EUR'),
fees = Money(amount=0, currency='EUR'),
debited_wallet_id = natural_user_wallet_id,
bank_account_id = '214651521',
tag = 'Created using Mangopay Python SDK'
)
create_payout = payout.save()
pprint(create_payout)
using MangoPay.SDK;
using MangoPay.SDK.Entities;
using MangoPay.SDK.Entities.POST;
using MangoPay.SDK.Core.Enumerations;
using Newtonsoft.Json;
class Program
{
static async Task Main(string[] args)
{
MangoPayApi api = new MangoPayApi();
api.Config.ClientId = "your-client-id";
api.Config.ClientPassword = "your-api-key";
var userId = "user_m_01J2TZ261WZNDM0ZDRWGDYA4GN";
var bankAccountId = "bankacc_m_01J534QNZZSRCXXAJ1VXP58DDH";
var walletId = "wlt_m_01J30991BXBB7VF28PBS82EWD3";
var debitedFunds = new Money { Amount = 2000, Currency = CurrencyIso.EUR };
var fees = new Money { Amount = 50, Currency = CurrencyIso.EUR };
var bankWireRef = "Example123";
var payout = new PayOutBankWirePostDTO(
userId,
walletId,
debitedFunds,
fees,
bankAccountId,
bankWireRef,
PayoutModeRequested.STANDARD
) {
Tag = "Created using the Mangopay .NET SDK"
};
var createPayout = await api.PayOuts.CreateBankWireAsync(payout);
string prettyPrint = JsonConvert.SerializeObject(createPayout, Formatting.Indented);
Console.WriteLine(prettyPrint);
}
}
{
"Id": "po_m_01HQMZSGSQPPXC51TZHDAYFAJF",
"Tag": "Created using Mangopay API Postman Collection",
"CreationDate": 1709027672,
"AuthorId": "204069570",
"CreditedUserId": null,
"DebitedFunds": {
"Currency": "EUR",
"Amount": 5792
},
"CreditedFunds": {
"Currency": "EUR",
"Amount": 5213
},
"Fees": {
"Currency": "EUR",
"Amount": 579
},
"Status": "CREATED",
"ResultCode": null,
"ResultMessage": null,
"ExecutionDate": null,
"Type": "PAYOUT",
"Nature": "REGULAR",
"CreditedWalletId": null,
"DebitedWalletId": "204069727",
"PaymentType": "BANK_WIRE",
"BankAccountId": null,
"BankWireRef": "Example123",
"ModeRequested": null,
"ModeApplied": "PENDING_RESPONSE",
"FallbackReason": null,
"EndToEndId": "2c2184396eef4e5da90ab48a2feeb51d",
"PaymentRef": null,
"RecipientVerificationOfPayee": null,
"RecipientId": "rec_01KF0MPAA8X9C80Q394TSF7MEY",
"ChargeBearer": "OUR"
}
{
"Id": "po_m_01HQMZZV376RRXYQGQAHZ4TN9K",
"Tag": "Created using Mangopay API Postman Collection",
"CreationDate": 1709027880,
"AuthorId": "204069570",
"CreditedUserId": null,
"DebitedFunds": {
"Currency": "EUR",
"Amount": 3387
},
"CreditedFunds": {
"Currency": "EUR",
"Amount": 3048
},
"Fees": {
"Currency": "EUR",
"Amount": 339
},
"Status": "CREATED",
"ResultCode": null,
"ResultMessage": null,
"ExecutionDate": null,
"Type": "PAYOUT",
"Nature": "REGULAR",
"CreditedWalletId": null,
"DebitedWalletId": "204069727",
"PaymentType": "BANK_WIRE",
"BankAccountId": null,
"BankWireRef": "Example123",
"ModeRequested": "INSTANT_PAYMENT_ONLY",
"ModeApplied": "PENDING_RESPONSE",
"FallbackReason": null,
"EndToEndId": "e8052ae4729f4abe9355442020f411a9",
"PaymentRef": null,
"RecipientVerificationOfPayee": null,
"RecipientId": "rec_01KF0MPAA8X9C80Q394TSF7MEY"
}
{
"Id": "po_m_01JMCS9ED9YTYZBJ3CH0GEMEDS",
"Tag": "Created using Mangopay API Postman Collection",
"CreationDate": 1739890932,
"AuthorId": "user_m_01JKWYDT94N91CW572D7QNNYRP",
"CreditedUserId": null,
"DebitedFunds": {
"Currency": "EUR",
"Amount": 1135
},
"CreditedFunds": {
"Currency": "EUR",
"Amount": 1022
},
"Fees": {
"Currency": "EUR",
"Amount": 113
},
"Status": "CREATED",
"ResultCode": null,
"ResultMessage": null,
"ExecutionDate": null,
"Type": "PAYOUT",
"Nature": "REGULAR",
"CreditedWalletId": null,
"DebitedWalletId": "wlt_m_01JMAAKGM0VCBCQ5V4DB3EZPER",
"PaymentType": "BANK_WIRE",
"BankAccountId": null,
"BankWireRef": "Example123",
"ModeRequested": "RTGS_PAYMENT",
"ModeApplied": "PENDING_RESPONSE",
"FallbackReason": null,
"EndToEndId": "a66784a74c7b4357bbe4f10abccbe411",
"PaymentRef": null,
"RecipientVerificationOfPayee": null,
"RecipientId": "rec_01KF0MPAA8X9C80Q394TSF7MEY"
}
{
"Id": "po_b_01JCR32EMBXRWNWRN5KVW2DXE1",
"Tag": "Created using Mangopay API Postman Collection",
"CreationDate": 1731680352,
"AuthorId": "user_m_01JCQYJNHFPENP1SKTCBYER0F8",
"CreditedUserId": null,
"DebitedFunds": {
"Currency": "EUR",
"Amount": 24581
},
"CreditedFunds": {
"Currency": "EUR",
"Amount": 24581
},
"Fees": {
"Currency": "EUR",
"Amount": 0
},
"Status": "CREATED",
"ResultCode": null,
"ResultMessage": null,
"ExecutionDate": null,
"Type": "PAYOUT",
"Nature": "REGULAR",
"CreditedWalletId": null,
"DebitedWalletId": "wlt_m_01J9KR4A7BH8KVE4PG6DTNS817",
"PaymentType": "BANK_WIRE",
"BankAccountId": null,
"BankWireRef": "Example123",
"ModeRequested": null,
"ModeApplied": "STANDARD",
"FallbackReason": null,
"EndToEndId": "2da75c747abf4fbd83d6fd746d63fad4",
"PaymentRef": {
"ReasonType": "PAYIN_REFUND",
"ReferenceId": "payin_m_01JCR21X56KVHF7F5TVGYNT9G7"
},
"RecipientVerificationOfPayee": null,
"RecipientId": "rec_01KF0MPAA8X9C80Q394TSF7MEY"
}
Note –
PayoutModeRequested property only relevant for EURThe PayoutModeRequested property is only relevant for EUR payouts, where the value determines which of the SEPA schemes (SCT, SCT Inst, or T2) is used.For other currencies, Mangopay automatically uses the relevant local scheme (e.g. FPS for GBP) if the Recipient’s destination country corresponds, or otherwise uses SWIFT. Read more →Body parameters
string
Max. length: 255 charactersCustom data that you can add to this object.
string
required
The unique identifier of the user at the source of the transaction.
Best practice: When the payout author is different from the bank account owner, the Payout
Best practice: When the payout author is different from the bank account owner, the Payout
AuthorId value must be different from the Bank Account UserId value as well. Otherwise, Mangopay’s Compliance team will reject the payout.object
required
Information about the debited funds.
Show properties
Show properties
string
required
Allowed 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.
integer
required
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).object
required
Information about the fees taken by the platform for this transaction (and hence transferred to the Fees Wallet).
Show properties
Show properties
string
required
Allowed 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.
integer
required
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).string
required
The unique identifier of the debited wallet.
string
The unique identifier of the Recipient object to which the payout is being requested. This property should be used by platforms integrating for the first time (and not the
BankAccountId).string
The unique identifier of the Bank Account. This property should not be used by platforms integrating for the first time – send the
RecipientId instead.string
Max. length: 255 characters (< 12 recommended)Custom description to appear on the user’s bank statement along with the platform name. The recommended length is 12 characters – strings longer than this may be truncated depending on the bank.For the full structure of the string, see the Customizing bank statement references article.
string
Possible values:
STANDARD, INSTANT_PAYMENT, INSTANT_PAYMENT_ONLY, RTGS_PAYMENTDefault value: STANDARDThe mode defining how the payout request is sent:STANDARD– Non-EUR: Sent via the relevant local rail if the Recipient’s destination country corresponds, or otherwise sent via SWIFT. Mangopay automatically routes funds via the available rails, which also determines delivery times. Requests received after the applicable cutoff are processed the next working day. EUR: Sent via the SEPA Credit Transfer scheme or SWIFT (if non-domestic).INSTANT_PAYMENT– EUR only: Sent via the SEPA Instant Credit Transfer scheme (funds processed within 10 seconds) with a fallback toSTANDARDmode if any of the prerequisites are not met or if another issue occurs. If the payout is above the threshold agreed with Mangopay, the payout fails and there is no fallback.INSTANT_PAYMENT_ONLY– EUR only: sent via the SEPA Instant Credit Transfer scheme (funds processed within 10 seconds) without a fallback. If an issue occurs, the wallet automatically refunded.RTGS_PAYMENT– EUR only: sent via the Eurozone’s real-time gross settlement (RGTS) scheme T2 (funds processed same working day) without a fallback. If the request is received after the applicable cutoff (16:15 CET), it is processed the next working day (from 07:00 CET).
object
Information about the payment reference provided for the payout.This object must be used to provide the reference of a bank wire pay-in or a pay-in to virtual IBAN, if the payout is being used to refund it.
Show properties
Show properties
string
Allowed values:
PAYIN_REFUNDThe reason for the reference being provided:PAYIN_REFUND– The payout serves to reimburse a pay-in.
string
Allowed values: The valid
Id of a successful pay-in.The unique identifier associated with the reference, whose value corresponds to the ReasonType:PAYIN_REFUND– TheReferenceIdvalue provided is the same as theIdof the initial pay-in being refunded.
string | null
Possible values:
SHA, OURDefault value: SHAThe allocation of processing fees for an international SWIFT payout:SHA- Fees are shared between the remitter and beneficiary. The beneficiary’s share is deducted from the payout, meaning that the amount arriving on the recipient’s bank account may be less than the Payout’sCreditedFunds.Amount.OUR- All fees are paid by the remitter. The recipient receives the fullCreditedFunds.Amountof the Payout, and Mangopay recovers the fees from the platform during the billing cycle. A 400 HTTP error is returned if Mangopay’s network of partners does not supportOURfees for the given currency and recipient country, or if this feature is not activated.
ChargeBearer is ignored and SHA or null is displayed by default in the response.Responses
200
200
string
Max length: 128 characters (see data formats for details)The unique identifier of the object.
string
Max. length: 255 charactersCustom data that you can add to this object.
Unix timestamp
The date and time at which the object was created.
string
The unique identifier of the user at the source of the transaction.
Best practice: When the payout author is different from the bank account owner, the Payout
Best practice: When the payout author is different from the bank account owner, the Payout
AuthorId value must be different from the Bank Account UserId value as well. Otherwise, Mangopay’s Compliance team will reject the payout.string
The unique identifier of the user whose wallet is credited.
In the specific case of the Payout object, this value is always
In the specific case of the Payout object, this value is always
null since there is no credited wallet.object
Information about the debited funds.
Show properties
Show properties
string
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.
integer
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).object
Information about the funds being credited to the target of the transaction (
CreditedFunds = DebitedFunds - Fees).Show properties
Show properties
string
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.
integer
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).object
Information about the fees taken by the platform for this transaction (and hence transferred to the Fees Wallet).
Show properties
Show properties
string
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.
integer
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).string
Returned values:
CREATED, SUCCEEDED, FAILEDThe status of the transaction.string
The code indicating the result of the operation. This information is mostly used to handle errors or for filtering purposes.
string
The explanation of the result code.
Unix timestamp
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.string
Returned values:
PAYIN, TRANSFER, CONVERSION, PAYOUTThe type of the transaction.string
Returned values:
REGULAR, REPUDIATION, REFUND, SETTLEMENTThe 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.
string
The unique identifier of the credited wallet.
In the specific case of the Payout object, this value is always
In the specific case of the Payout object, this value is always
null since there is no credited wallet.string
The unique identifier of the debited wallet.
string
Returned values:
CARD, DIRECT_DEBIT, PREAUTHORIZED, BANK_WIREThe type of pay-in.string
The unique identifier of the bank account.
string
Max. length: 255 characters (< 12 recommended)Custom description to appear on the user’s bank statement along with the platform name. The recommended length is 12 characters – strings longer than this may be truncated depending on the bank.For the full structure of the string, see the Customizing bank statement references article.
string
Returned values:
STANDARD, INSTANT_PAYMENT, INSTANT_PAYMENT_ONLY, RTGS_PAYMENTThe value set for the PayoutModeRequested parameter when making the request.string
Returned values:
STANDARD, INSTANT_PAYMENT, RTGS_PAYMENT, PENDING_RESPONSEThe mode defining how the payout request is sent:STANDARD– Non-EUR: Sent via the relevant local rail if the Recipient’s destination country corresponds, or otherwise sent via SWIFT. Mangopay automatically routes funds via the available rails, which also determines delivery times. Requests received after the applicable cutoff are processed the next working day. EUR: Sent via the SEPA Credit Transfer scheme or SWIFT (if non-domestic).INSTANT_PAYMENT– EUR only: Sent via the SEPA Instant Credit Transfer scheme (funds processed within 10 seconds).RTGS_PAYMENT– EUR only: Sent via the Eurozone’s real-time gross settlement (RGTS) scheme T2 (funds processed same working day) without a fallback. If the request is received after the applicable cutoff (16:15 CET), it is processed the next working day (from 07:00 CET).PENDING_RESPONSE– Temporary state to accommodate the possible latency between the creation of the request and the mode being applied in the case of instant payment and RGTS modes.
object
Information regarding the reason for the refusal of the instant payout request.
Show properties
Show properties
string
The code indicating the result of the operation. This information is mostly used to handle errors or for filtering purposes.
string
The explanation of the result code.
string
The unique identifier of a bank wire for tracking purposes only.
object
Information about the payment reference provided for the payout. This object is returned
null if not provided.This object must be used to provide the reference of a bank wire pay-in or a pay-in to virtual IBAN, if the payout is being used to refund it.Show properties
Show properties
string
Allowed values:
PAYIN_REFUNDThe reason for the reference being provided:PAYIN_REFUND– The payout serves to reimburse a pay-in.
string
Allowed values: The valid
Id of a successful pay-inThe unique identifier associated with the reference, whose value corresponds to the ReasonType:PAYIN_REFUND– TheReferenceIdvalue provided is the same as theIdof the initial pay-in being refunded.
string
The unique identifier of the Recipient object to which the payout is being requested. This property should be used by platforms integrating for the first time (and not the
BankAccountId).string | null
Possible values:
SHA, OURDefault value: SHAThe allocation of processing fees for an international SWIFT payout:SHA- SWIFT fees are shared between the remitter and beneficiary. The beneficiary’s share is deducted from the payout, meaning that the amount arriving on the recipient’s bank account may be less than the Payout’sCreditedFunds.Amount.OUR- All SWIFT fees are paid by the remitter. The recipient receives the fullCreditedFunds.Amountof the Payout, and Mangopay recovers the fees from the platform during the billing cycle. A 400 HTTP error is returned if Mangopay’s network of partners does not supportOURfees for the given currency and recipient country, or if this feature is not activated.
ChargeBearer is ignored and SHA or null is displayed by default in the response.400 - LocalBankTransfer recipient not compatible with currency
400 - LocalBankTransfer recipient not compatible with currency
The error below occurs when an attempt was made to send a non-local currency to a newly created local Recipient (with the
PayoutMethodType of LocalBankTransfer), but the Recipient’s Country doesn’t correspond to the currency sent (e.g. a USD payout sent to local SEPA Recipient).To receive non-local currencies, create a new Recipient with PayoutMethodType of InternationalBankTransfer and retry the payout. Mangopay automatically optimizes the payout route, so if a local currency is sent to an international Recipient, the domestic rail is used.Read more about how Mangopay routes funds →{
"Id": "f601ee1c-2d77-48f5-a64e-11068f85ae84",
"Message": "Currency PLN not supported for given local DE recipient rec_01KN1HP4HVT54097B3DRWB0HM8. Create or use international recipient.",
"Type": "invalid_action",
"Date": 1774941060.0,
"errors": null
}
400 - Payout not allowed to PAYIN-scope Recipient
400 - Payout not allowed to PAYIN-scope Recipient
{
"Id": "44312c27-c681-4240-8df9-a2507bcf30d6",
"Message": "Payout not allowed for RecipientScope PAYIN",
"Type": "invalid_action",
"Date": 1747666655.0,
"errors": null
}
400 - One of RecipientId or BankAccountId required
400 - One of RecipientId or BankAccountId required
Platforms integrating for the first time should send the
RecipientId.{
"Id": "c0a55d23-84d7-4fd4-ad44-6729e76b3a08",
"Message": "One or several required parameters are missing or incorrect. An incorrect resource ID also raises this kind of error.",
"Type": "param_error",
"Date": 1769519160.0,
"errors": {
"BankAccountId_RecipientId": "Only one of 'BankAccountId' or 'RecipientId' can be provided."
}
}
{
"Id": "8c21222f-9741-40ae-94cf-7d5b3e0b6d40",
"Message": "One or several required parameters are missing or incorrect. An incorrect resource ID also raises this kind of error.",
"Type": "param_error",
"Date": 1769519089.0,
"errors": {
"BankAccountId_RecipientId": "Either BankAccountId or RecipientId must be provided."
}
}
400 - INSTANT_PAYMENT used for non-EUR
400 - INSTANT_PAYMENT used for non-EUR
{
"Message": "One or several required parameters are missing or incorrect. An incorrect resource ID also raises this kind of error.",
"Type": "param_error",
"Id": "e1606a91-e563-45f3-a337-acdd933ab80b#1673533663",
"Date": 1673533664.0,
"errors": {
"PayoutModeRequested": "InstantPayment is disabled"
}
}
400 - INSTANT_PAYMENT is deactivated
400 - INSTANT_PAYMENT is deactivated
{
"Message": "One or several required parameters are missing or incorrect. An incorrect resource ID also raises this kind of error.",
"Type": "param_error",
"Id": "b5a1b347-9b21-4077-bd41-d41ea4b07be4#1676883139",
"Date": 1676883140.0,
"errors": {
"PayoutModeRequested": "InstantPayment was explicitly requested but this feature is not activated on your configuration"
}
}
400 - Bank not reachable for SCT Inst (including non-EUR if INSTANT_PAYMENT requested)
400 - Bank not reachable for SCT Inst (including non-EUR if INSTANT_PAYMENT requested)
{
"Id": "6587fb28-4df8-40bc-80b4-782632bd4f16",
"Message": "One or several required parameters are missing or incorrect. An incorrect resource ID also raises this kind of error.",
"Type": "param_error",
"Date": 1779269064.0,
"errors": {
"PayoutModeRequested": "The request for instant payment cannot be successful due to ineligibility"
}
}
400 - SWIFT OUR charge bearing not supported for currency and recipient country
400 - SWIFT OUR charge bearing not supported for currency and recipient country
{
"Id": "098c7654-3210-4892-b062-876543210abc",
"Message": "One or several required parameters are missing or incorrect. An incorrect resource ID also raises this kind of error.",
"Type": "payout_error",
"Date": 1737041130,
"errors": {
"Chargebearer": "Chargebearer = OUR is not supported"
}
}
400 - SWIFT OUR charge bearing not activated for your platform
400 - SWIFT OUR charge bearing not activated for your platform
{
"Id": "f8b52b3a-ce2b-4755-a5bd-c07122fc5b17",
"Message": "One or several required parameters are missing or incorrect. An incorrect resource ID also raises this kind of error.",
"Type": "param_error",
"Date": 1771262195.0,
"errors": {
"ChargeBearer": "ChargeBearer type not enabled"
}
}
{
"Id": "po_m_01HQMZSGSQPPXC51TZHDAYFAJF",
"Tag": "Created using Mangopay API Postman Collection",
"CreationDate": 1709027672,
"AuthorId": "204069570",
"CreditedUserId": null,
"DebitedFunds": {
"Currency": "EUR",
"Amount": 5792
},
"CreditedFunds": {
"Currency": "EUR",
"Amount": 5213
},
"Fees": {
"Currency": "EUR",
"Amount": 579
},
"Status": "CREATED",
"ResultCode": null,
"ResultMessage": null,
"ExecutionDate": null,
"Type": "PAYOUT",
"Nature": "REGULAR",
"CreditedWalletId": null,
"DebitedWalletId": "204069727",
"PaymentType": "BANK_WIRE",
"BankAccountId": null,
"BankWireRef": "Example123",
"ModeRequested": null,
"ModeApplied": "PENDING_RESPONSE",
"FallbackReason": null,
"EndToEndId": "2c2184396eef4e5da90ab48a2feeb51d",
"PaymentRef": null,
"RecipientVerificationOfPayee": null,
"RecipientId": "rec_01KF0MPAA8X9C80Q394TSF7MEY",
"ChargeBearer": "OUR"
}
{
"Id": "po_m_01HQMZZV376RRXYQGQAHZ4TN9K",
"Tag": "Created using Mangopay API Postman Collection",
"CreationDate": 1709027880,
"AuthorId": "204069570",
"CreditedUserId": null,
"DebitedFunds": {
"Currency": "EUR",
"Amount": 3387
},
"CreditedFunds": {
"Currency": "EUR",
"Amount": 3048
},
"Fees": {
"Currency": "EUR",
"Amount": 339
},
"Status": "CREATED",
"ResultCode": null,
"ResultMessage": null,
"ExecutionDate": null,
"Type": "PAYOUT",
"Nature": "REGULAR",
"CreditedWalletId": null,
"DebitedWalletId": "204069727",
"PaymentType": "BANK_WIRE",
"BankAccountId": null,
"BankWireRef": "Example123",
"ModeRequested": "INSTANT_PAYMENT_ONLY",
"ModeApplied": "PENDING_RESPONSE",
"FallbackReason": null,
"EndToEndId": "e8052ae4729f4abe9355442020f411a9",
"PaymentRef": null,
"RecipientVerificationOfPayee": null,
"RecipientId": "rec_01KF0MPAA8X9C80Q394TSF7MEY"
}
{
"Id": "po_m_01JMCS9ED9YTYZBJ3CH0GEMEDS",
"Tag": "Created using Mangopay API Postman Collection",
"CreationDate": 1739890932,
"AuthorId": "user_m_01JKWYDT94N91CW572D7QNNYRP",
"CreditedUserId": null,
"DebitedFunds": {
"Currency": "EUR",
"Amount": 1135
},
"CreditedFunds": {
"Currency": "EUR",
"Amount": 1022
},
"Fees": {
"Currency": "EUR",
"Amount": 113
},
"Status": "CREATED",
"ResultCode": null,
"ResultMessage": null,
"ExecutionDate": null,
"Type": "PAYOUT",
"Nature": "REGULAR",
"CreditedWalletId": null,
"DebitedWalletId": "wlt_m_01JMAAKGM0VCBCQ5V4DB3EZPER",
"PaymentType": "BANK_WIRE",
"BankAccountId": null,
"BankWireRef": "Example123",
"ModeRequested": "RTGS_PAYMENT",
"ModeApplied": "PENDING_RESPONSE",
"FallbackReason": null,
"EndToEndId": "a66784a74c7b4357bbe4f10abccbe411",
"PaymentRef": null,
"RecipientVerificationOfPayee": null,
"RecipientId": "rec_01KF0MPAA8X9C80Q394TSF7MEY"
}
{
"Id": "po_b_01JCR32EMBXRWNWRN5KVW2DXE1",
"Tag": "Created using Mangopay API Postman Collection",
"CreationDate": 1731680352,
"AuthorId": "user_m_01JCQYJNHFPENP1SKTCBYER0F8",
"CreditedUserId": null,
"DebitedFunds": {
"Currency": "EUR",
"Amount": 24581
},
"CreditedFunds": {
"Currency": "EUR",
"Amount": 24581
},
"Fees": {
"Currency": "EUR",
"Amount": 0
},
"Status": "CREATED",
"ResultCode": null,
"ResultMessage": null,
"ExecutionDate": null,
"Type": "PAYOUT",
"Nature": "REGULAR",
"CreditedWalletId": null,
"DebitedWalletId": "wlt_m_01J9KR4A7BH8KVE4PG6DTNS817",
"PaymentType": "BANK_WIRE",
"BankAccountId": null,
"BankWireRef": "Example123",
"ModeRequested": null,
"ModeApplied": "STANDARD",
"FallbackReason": null,
"EndToEndId": "2da75c747abf4fbd83d6fd746d63fad4",
"PaymentRef": {
"ReasonType": "PAYIN_REFUND",
"ReferenceId": "payin_m_01JCR21X56KVHF7F5TVGYNT9G7"
},
"RecipientVerificationOfPayee": null,
"RecipientId": "rec_01KF0MPAA8X9C80Q394TSF7MEY"
}
{
"Tag": "Created using Mangopay API Postman Collection",
"AuthorId": "user_m_01KF3087EDXEAK8VPD9DTMZW8N",
"DebitedFunds": {
"Currency": "EUR",
"Amount": 5792
},
"Fees": {
"Currency": "EUR",
"Amount": 579
},
"DebitedWalletId": "wlt_m_01KF30AN0HCMPPCGEEGY4DCBGZ",
"RecipientId": "rec_01KF0MPAA8X9C80Q394TSF7MEY",
"BankWireRef": "Example123"
}
{
"Tag": "Created using Mangopay API Postman Collection",
"AuthorId": "204069570",
"DebitedFunds": {
"Currency": "EUR",
"Amount": 3387
},
"Fees": {
"Currency": "EUR",
"Amount": 339
},
"DebitedWalletId": "204069727",
"BankAccountId": "204070675",
"BankWireRef": "Example123",
"PayoutModeRequested": "INSTANT_PAYMENT_ONLY"
}
{
"Tag": "Created using Mangopay API Postman Collection",
"AuthorId": "user_m_01JKWYDT94N91CW572D7QNNYRP",
"DebitedFunds": {
"Currency": "EUR",
"Amount": 1135
},
"Fees": {
"Currency": "EUR",
"Amount": 113
},
"DebitedWalletId": "wlt_m_01JMAAKGM0VCBCQ5V4DB3EZPER",
"BankAccountId": "bankacc_m_01JMCS94W97ZM6XF5HR0KEVSGV",
"BankWireRef": "Example123",
"PayoutModeRequested": "RTGS_PAYMENT"
}
{
"AuthorId": "user_m_01JCQYJNHFPENP1SKTCBYER0F8",
"Tag": "Created using Mangopay API Postman Collection",
"DebitedFunds": {
"Currency": "EUR",
"Amount": 24581
},
"Fees": {
"Currency": "EUR",
"Amount": 0
},
"DebitedWalletId": "wlt_m_01J9KR4A7BH8KVE4PG6DTNS817",
"BankAccountId": "bankacc_m_01JCN1X2EHWG0JNJNPNQ21CW5G",
"BankWireRef": "Example123",
"PaymentRef": {
"ReasonType": "PAYIN_REFUND",
"ReferenceId": "payin_m_01JCR21X56KVHF7F5TVGYNT9G7"
}
}
<?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 {
$payout = new \MangoPay\PayOut();
$payout->Tag = 'Created with Mangopay PHP SDK';
$payout->AuthorId = '146476890';
$payout->DebitedFunds = new \MangoPay\Money();
$payout->DebitedFunds->Currency = 'EUR';
$payout->DebitedFunds->Amount = 1000;
$payout->Fees = new \MangoPay\Money();
$payout->Fees->Currency = 'EUR';
$payout->Fees->Amount = 0;
$payout->DebitedWalletId = '148968396';
$payout->PayoutPaymentDetails = new \MangoPay\PayOutPaymentDetailsBankWire();
$payout->MeanOfPaymentDetails->BankAccountId = '198982485';
$payout->MeanOfPaymentDetails->BankWireRef = 'MangopayPHP';
$payout->MeanOfPaymentDetails = $payout->PayoutPaymentDetails;
$payout->PaymentType = \MangoPay\PayOutPaymentType::BankWire;
$payout->PayoutModeRequested = 'STANDARD';
$response = $api->PayOuts->Create($payout);
print_r($response);
} catch(MGPResponseException $e) {
print_r($e);
} catch(MGPException $e) {
print_r($e);
}
const mangopayInstance = require('mangopay4-nodejs-sdk')
const mangopay = new mangopayInstance({
clientId: 'your-client-id',
clientApiKey: 'your-api-key',
})
let myUser = {
Id: '146476890',
WalletId: '148968396',
}
let myBankAccount = {
Id: '154876798',
}
let myPayout = {
DebitedWalletId: myUser.WalletId,
PaymentType: 'BANK_WIRE',
BankAccountId: myBankAccount.Id,
BankWireRef: 'Mangopay Ref',
PayoutModeRequested: 'STANDARD',
AuthorId: myUser.Id,
DebitedFunds: {
Currency: 'EUR',
Amount: 12,
},
Fees: {
Currency: 'EUR',
Amount: 0,
},
Tag: 'Created using Mangopay NodeJS SDK',
}
const createPayout = async (payout) => {
return await mangopay.PayOuts.create(payout)
.then((response) => {
console.info(response)
return response
})
.catch((err) => {
console.log(err)
return false
})
}
createPayout(myPayout)
require 'mangopay'
MangoPay.configure do |client|
client.preproduction = true
client.client_id = 'your-client-id'
client.client_apiKey = 'your-api-key'
client.log_file = File.join(Dir.pwd, 'mangopay.log')
end
def createPayout(payoutObject)
begin
response = MangoPay::PayOut::BankWire.create(payoutObject)
puts response
return response
rescue MangoPay::ResponseError => error
puts "Failed to create payout: #{error.message}"
puts "Error details: #{error.details}"
return false
end
end
myUser = {
Id: '146476890',
WalletId: '148968396'
}
myBankAccount = {
Id: '154876798'
}
myPayout = {
DebitedWalletId: myUser[:WalletId],
PaymentType: 'BANK_WIRE',
BankAccountId: myBankAccount[:Id],
BankWireRef: 'Mangopay Ref',
PayoutModeRequested: 'STANDARD',
AuthorId: myUser[:Id],
DebitedFunds: {
Currency: 'EUR',
Amount: 1200,
},
Fees: {
Currency: 'EUR',
Amount: 0,
},
Tag: 'Created using Mangopay Ruby SDK'
}
createPayout(myPayout)
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.mangopay.MangoPayApi;
import com.mangopay.core.Money;
import com.mangopay.core.enumerations.CurrencyIso;
import com.mangopay.core.enumerations.PayoutMode;
import com.mangopay.entities.PayOut;
import com.mangopay.entities.subentities.PayOutPaymentDetailsBankWire;
public class CreatePayout {
public static void main(String[] args) throws Exception {
MangoPayApi mangopay = new MangoPayApi();
mangopay.getConfig().setClientId("your-client-id");
mangopay.getConfig().setClientPassword("your-api-key");
var userId = "user_m_01HQK25M6KVHKDV0S36JY9NRKR";
var walletId = "wlt_m_01HQT6422EER2N7FPRXWTSDCSV";
var bankAccountId = "bankacc_m_01HTJ7P7Y8K9DS5SZ08MDQRHHE";
PayOut payout = new PayOut();
payout.setAuthorId(userId);
payout.setDebitedWalletId(walletId);
payout.setDebitedFunds(new Money(CurrencyIso.EUR, 500));
payout.setFees(new Money(CurrencyIso.EUR, 0));
PayOutPaymentDetailsBankWire paymentDetails = new PayOutPaymentDetailsBankWire();
paymentDetails.setBankAccountId(bankAccountId);
paymentDetails.setPayoutModeRequested(PayoutMode.STANDARD);
payout.setMeanOfPaymentDetails(paymentDetails);
PayOut createPayout = mangopay.getPayOutApi().create(payout);
Gson prettyPrint = new GsonBuilder().setPrettyPrinting().create();
String prettyJson = prettyPrint.toJson(createPayout);
System.out.println(prettyJson);
}
}
from pprint import pprint
import mangopay
mangopay.client_id='your-client-id'
mangopay.apikey='your-api-key'
from mangopay.api import APIRequest
handler = APIRequest(sandbox=True)
from mangopay.resources import BankWirePayOut
from mangopay.utils import Money
natural_user_id = '213753890'
natural_user_wallet_id = '213754077'
payout = BankWirePayOut(
author_id = natural_user_id,
debited_funds = Money(amount=200, currency='EUR'),
fees = Money(amount=0, currency='EUR'),
debited_wallet_id = natural_user_wallet_id,
bank_account_id = '214651521',
tag = 'Created using Mangopay Python SDK'
)
create_payout = payout.save()
pprint(create_payout)
using MangoPay.SDK;
using MangoPay.SDK.Entities;
using MangoPay.SDK.Entities.POST;
using MangoPay.SDK.Core.Enumerations;
using Newtonsoft.Json;
class Program
{
static async Task Main(string[] args)
{
MangoPayApi api = new MangoPayApi();
api.Config.ClientId = "your-client-id";
api.Config.ClientPassword = "your-api-key";
var userId = "user_m_01J2TZ261WZNDM0ZDRWGDYA4GN";
var bankAccountId = "bankacc_m_01J534QNZZSRCXXAJ1VXP58DDH";
var walletId = "wlt_m_01J30991BXBB7VF28PBS82EWD3";
var debitedFunds = new Money { Amount = 2000, Currency = CurrencyIso.EUR };
var fees = new Money { Amount = 50, Currency = CurrencyIso.EUR };
var bankWireRef = "Example123";
var payout = new PayOutBankWirePostDTO(
userId,
walletId,
debitedFunds,
fees,
bankAccountId,
bankWireRef,
PayoutModeRequested.STANDARD
) {
Tag = "Created using the Mangopay .NET SDK"
};
var createPayout = await api.PayOuts.CreateBankWireAsync(payout);
string prettyPrint = JsonConvert.SerializeObject(createPayout, Formatting.Indented);
Console.WriteLine(prettyPrint);
}
}
Was this page helpful?