Skip to main content

Payout

This endpoint initiates a payout order.

POST - Sandbox
https://sandbox.paypaygateway.com/fn-execute/payment/payout
POST - Production
https://api.paypaygateway.com/fn-execute/payment/payout

Header Parameters​

ParameterDescriptionTypeR/O
AuthorizationAuthorization header containing your Secret KeystringR
midmid header containing your merchant IDstringO

Body Parameters​

ParameterDescriptionTypeR/O
referenceNoThe unique number provided by the merchant is used to track payouts. (max. 32 characters)stringR
amountAmount to payout, in the minor unit of your selected currency. All currencies are standardized to 100 units. For example, an amount of 100 in EUR is equal to 1€numberR
currencyCode of the currency. Must consist of 3 capital letters.stringR
creditCardAn object that contains credit card data.objectR
holderCardholder name.stringR
numberCardholder number. Must be between 13 and 19 characters long.stringR
expiryMonthCard expiry month. 1 or 2 digits, between 1 and 12.stringR
expiryYearCard expiry year. 2 or 4 digits.stringR
firstNameCustomer first namestringR
lastNameCustomer last namestringR
emailCustomer emailstringR
phoneCustomer phone number. Must contain from 8 to 15 characters.stringR
countryCustomer country code. Should be 2 or 3 characters long.stringR
streetCustomer streetstringR
cityCustomer citystringR
zipCustomer zipstringR
ipCustomer ipstringR
dateOfBirthCustomer date of birth. (YYYY-MM-DD)stringR
notifyUrlURL to send notifications when the payout status changesstringR
hashThe unique SHA-256 hash value of the request bodystringR
{
"referenceNo": "d43aaaca80e842a890f5dfad095f456",
"amount": 50000,
"currency": "EUR",
"creditCard": {
"holder": "Alex Fox",
"number": "4242424242424242",
"expiryMonth": "08",
"expiryYear": "2027",
},
"customer": {
"firstName": "Alex",
"lastName": "Fox",
"email": "somaaaaaik@mail.com",
"phone": "15551134567",
"country": "NJ",
"street": "2495 Lake Road",
"city": "Merchantville",
"zip": "08109",
"ip": "192.168.1.1",
"dateOfBirth": "2000-08-24",
},
"notifyUrl": "https://example.com",
"hash": "9cbd219ef45d7957262bca36c080b383ca7cdfb08e9f1fcc0dec0bfe4d97ac4b"
}

Responses​

Response Payout​

200
{
"status": 'successful',
"code": '2007',
"messagetype": 'payout',
"message": {
"status": 'SUCCESS',
"referenceNo": '1770115577184-15',
"payoutId": '6981d1fb9a9ccb0513fd4ae7',
"amount": 50000,
"currency": 'EUR'
}
}
ParameterDescriptionType
statusResponse statusstring
codeResponse codestring
messagetypeResponse message typestring
messageResponse messageobject
200
{
"status": 'successful',
"code": '2007',
"messagetype": 'payout',
"message": {
"status": 'PAYOUT_REQUESTED',
"referenceNo": '1770115577184-15',
"payoutId": '6981d1fb9a9ccb0513fd4ae7',
"amount": 50000,
"currency": 'EUR'
}
}
ParameterDescriptionType
statusResponse statusstring
codeResponse codestring
messagetypeResponse message typestring
messageResponse messageobject
400
{
"status": "failure",
"code": "1039",
"messagetype": "payout",
"message": {
"error": "Invalid creditCard.holder: It must be a string"
}
}
ParameterDescriptionType
statusResponse statusstring
codeResponse codestring
messagetypeResponse message typestring
messageResponse messageobject