You can store the third-party's payout details and make a payout request in a single API call to /storeDetailAndSubmitThirdParty
.
Set the recurring value to RECURRING,PAYOUT
. This creates a recurring details contract, which can be used for subsequent payouts to this third-party.
For HPP:
<input type="hidden" name="shopperEmail" value="s.hopper@test.com" />
<input type="hidden" name="shopperReference" value="YOUR_UNIQUE_SHOPPER_ID_IOfW3k9G2PvXFu2j" />
<input type="hidden" name="recurringContract" value="RECURRING,PAYOUT" />
{
"merchantAccount" : "TestMerchant",
"recurring": {
"contract" : "RECURRING,PAYOUT"
},
"amount" : {
"value" : 2000,
"currency" : "EUR"
},
"bank" : {
"bankName" : "Deutsche Bank",
"iban" : "DE87123456781234567890",
"countryCode" : "DE",
"ownerName" : "Simon Hopper"
},
"reference" : "Your Reference Here",
"shopperEmail" : "s.hopper@test.com",
"shopperIP" : "61.294.12.12",
"shopperReference" : "YOUR_UNIQUE_SHOPPER_ID_IOfW3k9G2PvXFu2j",
"shopperName" : {
"firstName" : "Adyen",
"gender" : "MALE",
"lastName" : "Test"
},
"dateOfBirth" : "1990-01-01",
"entityType" : "Company",
"nationality" : "NL"
}
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance">
<soap:Body>
<ns1:authorise xmlns:ns1="http://payment.services.adyen.com">
<ns1:paymentRequest>
<merchantAccount xmlns="http://payment.services.adyen.com" >SupportAdyenTest</merchantAccount>
<recurring>
<contract>RECURRING,PAYOUT</contract>
</recurring>
<amount xmlns="http://payment.services.adyen.com">
<currency xmlns="http://common.services.adyen.com">EUR</currency>
<value xmlns="http://common.services.adyen.com">2000</value>
</amount>
<bank xmlns="http://payment.services.adyen.com">
<iban>DE87123456781234567890</iban>
<bankName>Deutsche Bank</bankName>
<countryCode>DE</countryCode>
<ownerName>Simon Hopper</ownerName>
</bank>
<reference xmlns="http://payment.services.adyen.com">Your Reference Here</reference>
<shopperEmail xmlns="http://payment.services.adyen.com">s.hopper@test.com</shopperEmail>
<shopperIP xmlns="http://payment.services.adyen.com">61.294.12.12</shopperIP>
<shopperReference xmlns="http://payment.services.adyen.com">YOUR_UNIQUE_SHOPPER_ID_IOfW3k9G2PvXFu2j</shopperReference>
<shopperName>
<firstName xmlns="http://common.services.adyen.com">Adyen</firstName>
<gender xmlns="http://common.services.adyen.com">MALE</gender>
<lastName xmlns="http://common.services.adyen.com">Test</lastName>
</shopperName>
<dateOfBirth>1990-01-01</dateOfBirth>
<entityType>Company</entityType>
<nationality>NL</nationality>
</ns1:paymentRequest>
</ns1:authorise>
</soap:Body>
</soap:Envelope>
merchantAccount=TestMerchant&amount.value=2000&amount.currency=EUR&bank.iban=DE87123456781234567890&bank.bankName=Deutsche+Bank&bank.countryCode=DE&bank.ownerName=Simon+Hoper&reference=Your+Reference+Here&shopperReference=YOUR_UNIQUE_SHOPPER_ID_IOfW3k9G2PvXFu2j&shopperEmail=s.hopper%40test.com&shopperIP=61.294.12.12&recurring.contract=RECURRING,PAYOUT&shopperName.firstName=Adyen&shopperName.gender=MALE&shopperName.lastName=Test&dateOfBirth=1990-01-01&entityType=Company&nationality=NL