customer parameter is used to describe the sender of the funds (client of ZEN.COM's Merchant), where receiver parameter is used to describe the receiver of the funds. The customer parameter and the receiverparameter can be:items object is used to describe the title of the payout Transaction.Authorization parameter is obliged for all requests sent to ZEN.COM API. Authorization value is the Terminal API key parameter you can find in your my.zen.com Merchant portal.{
"merchantTransactionId":"22abc123-f9a5-99b8-5df8-b31180358dd3",
"paymentChannel":"PCL_CARD",
"amount":"123.45",
"currency":"USD",
"items":[
{
"name":"refunded_product_name_example",
"price":"123.45",
"quantity":1,
"lineAmountTotal":"123.45"
}
],
"customer":{
"id":"99A321B0-EA00-4A21-B78D-8032D981ADBA",
"firstName":"John",
"lastName":"Doe",
"email":"[email protected]",
"phone":"+48 123 456 789",
"ip":"127.0.0.1"
},
"paymentSpecificData":{
"cardToken":"1234A56B-B9EE-4A5F-828F-D498344E25B3",
"type":"cardpayout",
"recipient":{
"firstName":"Joanna",
"lastName":"Doe"
}
},
"billingAddress":{
"street":"Example street",
"city":"Example city",
"postcode":"00-001",
"country":"PL"
}
}cardToken parameter use the id parameter from https://api.zen.com/v2/payout-profiles/card ZEN.COM API response.{
"id": "12abcdef-g345-4842-89ba-9c698ae15637",
"merchantTransactionId": "22abc123-f9a5-99b8-5df8-b31180358dd3",
"amount": "123.45",
"currency": "USD",
"createdAt": "2025-01-21T10:24:30.573Z",
"modifiedAt": "2025-01-21T10:24:30.730Z",
"type": "TRT_SENDOUT",
"status": "PENDING",
"paymentChannel": "PCL_CARD",
"actions": {
"capture": false,
"cancel": false,
"refund": false,
"redirect": false,
"authorization": false
},
"fraudFields": {
"channel": "PTS_ZEN_API",
"apiIntegration": "true"
},
"customer": {
"id": "99A321B0-EA00-4A21-B78D-8032D981ADBA",
"firstName": "John",
"lastName": "Doe",
"email": "[email protected]",
"phone": "+48 123 456 789",
"ip": "127.0.0.1",
"country": "LT"
},
"billingAddress": {
"country": "PL",
"city": "Example city",
"postcode": "00-001",
"street": "Example street"
},
"items": [
{
"name": "refunded_product_name_example",
"price": "123.45",
"authPrice": "123.45",
"quantity": 1,
"lineAmountTotal": "123.45",
"authLineAmountTotal": "123.45"
}
],
"source": {
"channel": "PTS_ZEN_API"
},
"cardInfo": {
"bank": "Bank name",
"country": "PL",
"organization": "COR_MASTERCARD",
"organizationBrand": "CCB_MASTERCARD",
"token": "1234A56B-B9EE-4A5F-828F-D498344E25B3",
"segment": "CSG_INDIVIDUAL",
"type": "CDT_DEBIT",
"lastFourDigits": "1234",
"bin": "111222",
"eea": true,
"commercial": false,
"merchantCardToken": "1234A56B-B9EE-4A5F-828F-D498344E25B3"
},
"authorization": {
"amount": "123.45",
"currency": "USD"
}
}merchantCardToken, token and cardToken parameters are using id parameter from https://api.zen.com/v2/payout-profiles/card ZEN.COM API response.