Download OpenAPI specification:Download
ZEN allows you to accept multiple global and local payment methods (including credit cards, instant bank transfers, and many more). The following document will guide you through the integration process and introduce you to the main features of the Public API..
1. Allowed HTTPs requests:
2. Description of usual server responses:
3. API Integration Guidelines
To start using ZEN eCommerce Public API please follow these instructions:
https://www.zen.com/developer/api-integration#before-you-begin
4. IPN API Secrets
Instant Payment Notification (IPN) informs you about transaction status updates, e.g., about changing the status from pending to rejected.
Information abut IPN is available in the following link:
https://www.zen.com/developer/api-integration#ipn
4. Error codes
The full list of error codes can be found here:
https://www.zen.com/developer/api-integration#rejection-codes
ZEN uses virtual Terminals to manage payment methods used by Merchants. By adding a currency parameter to the request, you will be returned with all payment methods that are enabled on the terminal, and which support payments in this currency. Each store uses a separate terminal. It allows you not only to have separate Terminal settings per each store, but also helps to verify the store which transactions come from.
customer-id required | string <uuid> A customer identifier |
transactionType required | string^TRT(_[A-Z0-9]+)+$ Example: transactionType=TRT_PURCHASE Type of the transaction. For regular transactions TRT_PURCHASE and TRT_REFUND should be used. |
amount required | string^(?=.*[0-9])\d{1,16}(?:\.\d{1,12})?$ Example: amount=123.04 amount |
currency required | string = 3 characters ^[A-Z]+$ Example: currency=PLN Currency |
itemsPerPage | string^[1-9][0-9]*$ Default: "10" Limit of results |
page | string^[1-9][0-9]*$ Default: "1" Page of results |
direction | string Default: "asc" Enum: "asc" "desc" Direction of order |
request-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:\_\|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. A unique identifier generated by the requesting client |
terminal-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:_|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. An unique Terminal ID |
[- {
- "active": true,
- "paymentChannel": "PCL_CARD",
- "paymentChannelLogoUrl": "string",
- "maintenance": {
- "from": "2019-08-24T14:15:22Z",
- "to": "2019-08-24T14:15:22Z",
- "details": "Database Migration"
}, - "currencies": [
- "PLN",
- "EUR",
- "USD",
- "GBP"
], - "segments": [
- "CSG_ZEN"
], - "cryptoCurrencies": [
- "BTC",
- "ETH"
], - "cashback": [
- {
- "type": "PERCENT",
- "value": "string"
}
], - "meta": { }
}
]
Allows you to create a transaction (by sending transaction parameteres to ZEN). Important! For some payment methods returnUrl will be returned to you. In order to proceed with the transaction customer needs to be redirected to that URL.
request-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:_|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. A unique identifier generated by requesting client |
terminal-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:_|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. An unique Terminal ID |
object Can only be used after using POST Calculate authorization amount. | |
merchantTransactionId required | string [ 1 .. 128 ] characters ^[a-zA-Z0-9?&:\-\/=.,#|]+$ Id of the transaction provided by merchant. |
paymentChannel required | string^([a-z](-?[a-z0-9])*|[A-Z](_?[A-Z0-9])*)$ Id of the payment channel for selected payment method. |
amount required | string^(?=.*[0-9])\d{1,16}(?:\.\d{1,12})?$ Amount of the transaction. |
currency required | string = 3 characters ^[A-Z]+$ Currency code in ISO 4217 alphabetic code |
customIpnUrl | string <uri> <= 256 characters URL address used by ZEN to send IPN to |
comment | string or null <= 512 characters |
required | object |
required | Array of objects Sum of items amount should be equal to transaction amount |
required | object |
required | object |
object | |
object | |
object Information about transaction cashback. |
{- "authorization": {
- "amount": "123.04",
- "currency": "PLN"
}, - "merchantTransactionId": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "paymentChannel": "PCL_CARD",
- "amount": "123.04",
- "currency": "PLN",
- "comment": "string",
- "items": [
- {
- "code": "IDS123",
- "category": "cars",
- "name": "Multipla",
- "price": "123.04",
- "quantity": 1,
- "lineAmountTotal": "123.04"
}
], - "customer": {
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+48 000 000 000",
- "ip": "127.0.0.1"
}, - "paymentSpecificData": {
- "type": "onetime",
- "descriptor": "Onetime Charge",
- "card": {
- "number": "5283126540000007",
- "expiryDate": "1220",
- "cvv": "100"
}, - "skip3ds": false,
- "browserDetails": {
- "acceptHeader": "text/html",
- "colorDepth": "24",
- "javaEnabled": false,
- "lang": "cs",
- "screenHeight": "560",
- "screenWidth": "360",
- "timezone": "-120",
- "windowSize": "02",
- "userAgent": "user agent"
}
}, - "billingAddress": {
- "id": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "userId": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "firstName": "John",
- "lastName": "Doe",
- "country": "DE",
- "street": "Poloninska",
- "city": "Rzeszow",
- "countryState": "Utah",
- "province": "Alberta",
- "buildingNumber": "12",
- "roomNumber": "5",
- "postcode": "31-137",
- "companyName": "Mega Corp Inc.",
- "phone": "48664778234",
- "taxId": "123-45-67-890"
}, - "shippingAddress": {
- "id": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "userId": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "firstName": "John",
- "lastName": "Doe",
- "country": "DE",
- "street": "Poloninska",
- "city": "Rzeszow",
- "countryState": "Utah",
- "province": "Alberta",
- "buildingNumber": "12",
- "roomNumber": "5",
- "postcode": "31-137",
- "companyName": "Mega Corp Inc.",
- "phone": "48664778234"
},
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantAction": {
- "action": "REDIRECT",
}, - "merchantTransactionId": "string",
- "originMerchantTransactionId": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "amount": "123.04",
- "currency": "PLN",
- "fee": {
- "amount": "123.04",
- "currency": "EUR"
}, - "subsidiaryData": {
- "feeAmount": "123.04",
- "grossAmount": "123.04"
}, - "authorization": {
- "amount": "string",
- "currency": "string",
- "fee": "string"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "type": "TRT_REFUND",
- "status": "AUTHORIZED",
- "topupTransferStatus": "PENDING",
- "paymentChannel": "PCL_CARD",
- "actions": {
- "refund": false,
- "cancel": false,
- "capture": true,
- "redirect": true,
- "authorization": true
}, - "fraudFields": {
- "property1": "string",
- "property2": "string"
}, - "rejectCode": "E40199",
- "rejectReason": "Client doesn't have enough money.",
- "refunds": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantTransactionId": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "originMerchantTransactionId": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "amount": "123.04",
- "currency": "PLN",
- "createdAt": "2019-08-24T14:15:22Z",
- "status": "AUTHORIZED"
}
], - "meta": {
- "payoutBtcAddress": "1HB5XDDddDDdDDDj6mfBsbifRoD4miY36v",
- "btcAmount": "10",
- "feeOwner": "partner",
- "avsResult": "string",
- "cvvResult": "string",
- "authorisationCode": "string",
- "resultCode": "string",
- "threeDs": {
- "xid": "string",
- "version": "string",
- "eci": "string",
- "cavv": "string",
- "cavvAlgorithm": "string",
- "emv3DSFlow": "ChallengeFlow",
- "status": "Y",
- "cardHolderInfo": "string",
- "errorData": {
- "component": "A",
- "description": "string",
- "detail": "string"
}
}, - "destinationCurrency": "string",
- "destinationAddress": "string",
- "amountToWithdraw": "string",
- "paymentCryptoAddress": "string",
- "cryptoAmount": "string",
- "cryptoCurrencyShortName": "string",
- "cryptoCurrencyFullName": "string",
- "cryptoNetworkFee": "string",
- "tracking": "string",
- "qrCodeData": "string",
- "cryptoCurrency": "string",
- "promoCode": "string",
- "walletCurrency": "string",
- "currencyName": "string",
- "currencyCode": "string",
- "currencyLogoUrl": "string",
- "network": "string",
- "networkCode": "string",
- "networkLogoUrl": "string",
- "fundsAvailability": "string",
- "captureMode": "string"
}, - "customer": {
- "id": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "userId": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "tenantId": 101,
- "segment": "CSG_CREATIVE",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+48 000 000 000",
- "information": "Some information",
- "accountId": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "ip": "127.0.0.1"
}, - "cardInfo": {
- "merchantCardToken": "string",
- "bank": "Cool bank",
- "country": "DE",
- "organization": "visa",
- "organizationBrand": "debit gold",
- "token": "b5507016-7da2-4777-a161-1e8042a6a377",
- "segment": "CSG_INDIVIDUAL",
- "type": "CDT_DEBIT",
- "lastFourDigits": 5516,
- "expirationDate": "2018-08-08T00:00:00.000Z",
- "bin": 557516
}, - "billingAddress": {
- "id": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "userId": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "tenantId": 101,
- "segment": "CSG_CREATIVE",
- "firstName": "John",
- "lastName": "Doe",
- "country": "DE",
- "street": "Poloninska",
- "city": "Rzeszow",
- "countryState": "Utah",
- "province": "Alberta",
- "buildingNumber": "12",
- "roomNumber": "5",
- "postcode": "31-137",
- "companyName": "Mega Corp Inc.",
- "phone": "48664778234",
- "taxId": "123-45-67-890"
}, - "shippingAddress": {
- "id": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "userId": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "tenantId": 101,
- "segment": "CSG_CREATIVE",
- "firstName": "John",
- "lastName": "Doe",
- "country": "DE",
- "street": "Poloninska",
- "city": "Rzeszow",
- "countryState": "Utah",
- "province": "Alberta",
- "buildingNumber": "12",
- "roomNumber": "5",
- "postcode": "31-137",
- "companyName": "Mega Corp Inc.",
- "phone": "48664778234"
}, - "items": [
- {
- "code": "IDS123",
- "category": "cars",
- "type": "physical",
- "name": "Multipla",
- "price": "123.04",
- "quantity": 1,
- "lineAmountTotal": "123.04"
}
], - "verifyReturnmac": "7e92079c-79e1-47bd-af9d-80c2f7783037",
- "cashback": {
- "active": false,
- "values": [
- {
- "type": "PERCENT",
- "value": "string"
}
], - "client": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "string",
- "tenantId": 101,
- "email": "[email protected]"
}
}, - "source": {
- "channel": "PTS_ZEN_API",
- "pluginName": "string",
- "pluginVersion": "string",
- "platformName": "string",
- "platformVersion": "string"
}
}
Returns transaction details using ZEN ID. It's Payment ID from my.zen.com platform
id required | string <uuid> Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 Unique identifier |
request-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:\_\|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. Unique identifier generated by requesting client |
terminal-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:_|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. An unique Terminal ID |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantAction": {
- "action": "REDIRECT",
}, - "merchantTransactionId": "string",
- "amount": "123.04",
- "currency": "PLN",
- "fee": {
- "amount": "123.04",
- "currency": "EUR"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "type": "TRT_REFUND",
- "status": "AUTHORIZED",
- "paymentChannel": "PCL_CARD",
- "actions": {
- "refund": false,
- "cancel": false,
- "capture": true,
- "redirect": true,
- "authorization": true
}, - "fraudFields": {
- "fingerPrintId": "string",
- "channel": "PTS_CHECKOUT",
}, - "rejectCode": "E40199",
- "rejectReason": "Client doesn't have enough money.",
- "refunds": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantTransactionId": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "amount": "123.04",
- "currency": "PLN",
- "createdAt": "2019-08-24T14:15:22Z",
- "status": "AUTHORIZED"
}
], - "meta": {
- "payoutBtcAddress": "1HB5XDDddDDdDDDj6mfBsbifRoD4miY36v",
- "btcAmount": "10",
- "feeOwner": "partner",
- "avsResult": "string",
- "cvvResult": "string",
- "authorisationCode": "string",
- "resultCode": "string",
- "threeDs": {
- "xid": "string",
- "version": "string",
- "eci": "string",
- "cavv": "string",
- "cavvAlgorithm": "string",
- "emv3DSFlow": "ChallengeFlow",
- "status": "Y",
- "cardHolderInfo": "string",
- "errorData": {
- "component": "A",
- "description": "string",
- "detail": "string"
}
}, - "destinationCurrency": "string",
- "destinationAddress": "string",
- "amountToWithdraw": "string",
- "paymentCryptoAddress": "string",
- "cryptoAmount": "string",
- "cryptoCurrencyShortName": "string",
- "cryptoCurrencyFullName": "string",
- "cryptoNetworkFee": "string",
- "tracking": "string",
- "qrCodeData": "string",
- "cryptoCurrency": "string",
- "promoCode": "string",
- "walletCurrency": "string",
- "currencyName": "string",
- "currencyCode": "string",
- "currencyLogoUrl": "string",
- "network": "string",
- "networkCode": "string",
- "networkLogoUrl": "string",
- "fundsAvailability": "string",
- "captureMode": "string"
}, - "customer": {
- "id": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "firstName": "John",
- "lastName": "Doe",
- "phone": 48000000000,
- "ip": "127.0.0.1"
}, - "cardInfo": {
- "merchantCardToken": "string",
- "bank": "Cool bank",
- "country": "DE",
- "organization": "visa",
- "organizationBrand": "debit gold",
- "token": "b5507016-7da2-4777-a161-1e8042a6a377",
- "segment": "CSG_ZEN",
- "lastFourDigits": 5516,
- "expirationDate": "2018-08-08T00:00:00.000Z",
- "bin": 557516
}, - "billingAddress": {
- "id": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "firstName": "John",
- "lastName": "Doe",
- "country": "DE",
- "street": "Poloninska",
- "city": "Warsaw",
- "countryState": "Utah",
- "province": "Alberta",
- "buildingNumber": "12",
- "roomNumber": "5",
- "postcode": "31-137",
- "companyName": "Mega Corp Inc.",
- "phone": "48000000000",
- "taxId": "123-45-67-890"
}, - "shippingAddress": {
- "id": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "firstName": "John",
- "lastName": "Doe",
- "country": "DE",
- "street": "Poloninska",
- "city": "Warsaw",
- "countryState": "Utah",
- "province": "Alberta",
- "buildingNumber": "12",
- "roomNumber": "5",
- "postcode": "31-137",
- "companyName": "Mega Corp Inc.",
- "phone": "48000000000"
}, - "items": [
- {
- "code": "IDS123",
- "category": "cars",
- "name": "Multipla",
- "price": "123.04",
- "quantity": 1,
- "lineAmountTotal": "123.04"
}
], - "verifyReturnmac": "7e92079c-79e1-47bd-af9d-80c2f7783037",
- "cashback": {
- "active": false,
- "values": [
- {
- "type": "PERCENT",
- "value": "string"
}
], - "client": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "string",
- "tenantId": 101,
- "email": "[email protected]"
}
}
}
Returns transaction details using Merchant transaction ID
merchantTransactionId required | string [ 1 .. 128 ] characters ^[a-zA-Z0-9?&:\-\/=.,#]+$ Example: 23beb187-f8a3-44b8-9ef8-b31180358dd3 Unique merchant transaction identifier |
request-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:\_\|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. Unique identifier generated by requesting client |
terminal-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:_|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. An unique Terminal ID |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantAction": {
- "action": "REDIRECT",
}, - "merchantTransactionId": "string",
- "amount": "123.04",
- "currency": "PLN",
- "fee": {
- "amount": "123.04",
- "currency": "EUR"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "type": "TRT_REFUND",
- "status": "AUTHORIZED",
- "paymentChannel": "PCL_CARD",
- "actions": {
- "refund": false,
- "cancel": false,
- "capture": true,
- "redirect": true,
- "authorization": true
}, - "fraudFields": {
- "fingerPrintId": "string",
- "channel": "PTS_CHECKOUT",
}, - "rejectCode": "E40199",
- "rejectReason": "Client doesn't have enough money.",
- "refunds": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantTransactionId": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "amount": "123.04",
- "currency": "PLN",
- "createdAt": "2019-08-24T14:15:22Z",
- "status": "AUTHORIZED"
}
], - "meta": {
- "payoutBtcAddress": "1HB5XDDddDDdDDDj6mfBsbifRoD4miY36v",
- "btcAmount": "10",
- "feeOwner": "partner",
- "avsResult": "string",
- "cvvResult": "string",
- "authorisationCode": "string",
- "resultCode": "string",
- "threeDs": {
- "xid": "string",
- "version": "string",
- "eci": "string",
- "cavv": "string",
- "cavvAlgorithm": "string",
- "emv3DSFlow": "ChallengeFlow",
- "status": "Y",
- "cardHolderInfo": "string",
- "errorData": {
- "component": "A",
- "description": "string",
- "detail": "string"
}
}, - "destinationCurrency": "string",
- "destinationAddress": "string",
- "amountToWithdraw": "string",
- "paymentCryptoAddress": "string",
- "cryptoAmount": "string",
- "cryptoCurrencyShortName": "string",
- "cryptoCurrencyFullName": "string",
- "cryptoNetworkFee": "string",
- "tracking": "string",
- "qrCodeData": "string",
- "cryptoCurrency": "string",
- "promoCode": "string",
- "walletCurrency": "string",
- "currencyName": "string",
- "currencyCode": "string",
- "currencyLogoUrl": "string",
- "network": "string",
- "networkCode": "string",
- "networkLogoUrl": "string",
- "fundsAvailability": "string",
- "captureMode": "string"
}, - "customer": {
- "id": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "firstName": "John",
- "lastName": "Doe",
- "phone": 48000000000,
- "ip": "127.0.0.1"
}, - "cardInfo": {
- "merchantCardToken": "string",
- "bank": "Cool bank",
- "country": "DE",
- "organization": "visa",
- "organizationBrand": "debit gold",
- "token": "b5507016-7da2-4777-a161-1e8042a6a377",
- "segment": "CSG_ZEN",
- "lastFourDigits": 5516,
- "expirationDate": "2018-08-08T00:00:00.000Z",
- "bin": 557516
}, - "billingAddress": {
- "id": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "firstName": "John",
- "lastName": "Doe",
- "country": "DE",
- "street": "Poloninska",
- "city": "Warsaw",
- "countryState": "Utah",
- "province": "Alberta",
- "buildingNumber": "12",
- "roomNumber": "5",
- "postcode": "31-137",
- "companyName": "Mega Corp Inc.",
- "phone": "48000000000",
- "taxId": "123-45-67-890"
}, - "shippingAddress": {
- "id": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "firstName": "John",
- "lastName": "Doe",
- "country": "DE",
- "street": "Poloninska",
- "city": "Warsaw",
- "countryState": "Utah",
- "province": "Alberta",
- "buildingNumber": "12",
- "roomNumber": "5",
- "postcode": "31-137",
- "companyName": "Mega Corp Inc.",
- "phone": "48000000000"
}, - "items": [
- {
- "code": "IDS123",
- "category": "cars",
- "name": "Multipla",
- "price": "123.04",
- "quantity": 1,
- "lineAmountTotal": "123.04"
}
], - "verifyReturnmac": "7e92079c-79e1-47bd-af9d-80c2f7783037",
- "cashback": {
- "active": false,
- "values": [
- {
- "type": "PERCENT",
- "value": "string"
}
], - "client": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "string",
- "tenantId": 101,
- "email": "[email protected]"
}
}
}
Processes transaction refunds using initial transaction's ID, received in POST /transaction
request-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:\_\|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. Unique identifier generated by requesting client |
terminal-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:_|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. An unique Terminal ID |
comment | string or null <= 512 characters |
amount required | string^(?=.*[0-9])\d{1,16}(?:\.\d{1,12})?$ Transaction amount |
transactionId required | string <uuid> Transaction ID generated during create transaction process |
currency required | string = 3 characters ^[A-Z]+$ Currency code in ISO 4217 alphabetic code |
merchantTransactionId required | string [ 1 .. 128 ] characters ^[a-zA-Z0-9?&:\-\/=.,#]+$ Id of the refund provided by merchant. |
originMerchantTransactionId | string [ 1 .. 128 ] characters Origin Id of the transaction provided by merchant. |
object |
{- "comment": "string",
- "amount": "123.04",
- "transactionId": "75906707-8c31-479c-b354-aa805c4cefbc",
- "currency": "PLN",
- "merchantTransactionId": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "originMerchantTransactionId": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "source": {
- "channel": "PTS_ZEN_API",
- "pluginName": "string",
- "pluginVersion": "string",
- "platformName": "string",
- "platformVersion": "string"
}
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "parentTransactionId": "f8033cf6-befa-47f4-a48a-b915b8c72a71",
- "merchantAction": {
- "action": "REDIRECT",
}, - "merchantTransactionId": "string",
- "amount": "123.04",
- "currency": "PLN",
- "fee": {
- "amount": "123.04",
- "currency": "EUR"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "type": "TRT_REFUND",
- "status": "AUTHORIZED",
- "paymentChannel": "PCL_CARD",
- "actions": {
- "refund": false,
- "cancel": false,
- "capture": true,
- "redirect": true,
- "authorization": true
}, - "fraudFields": {
- "fingerPrintId": "string",
- "channel": "PTS_CHECKOUT",
}, - "rejectCode": "E40199",
- "rejectReason": "Client doesn't have enough money.",
- "refunds": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantTransactionId": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "amount": "123.04",
- "currency": "PLN",
- "createdAt": "2019-08-24T14:15:22Z",
- "status": "AUTHORIZED"
}
], - "meta": {
- "payoutBtcAddress": "1HB5XDDddDDdDDDj6mfBsbifRoD4miY36v",
- "btcAmount": "10",
- "feeOwner": "partner",
- "avsResult": "string",
- "cvvResult": "string",
- "authorisationCode": "string",
- "resultCode": "string",
- "threeDs": {
- "xid": "string",
- "version": "string",
- "eci": "string",
- "cavv": "string",
- "cavvAlgorithm": "string",
- "emv3DSFlow": "ChallengeFlow",
- "status": "Y",
- "cardHolderInfo": "string",
- "errorData": {
- "component": "A",
- "description": "string",
- "detail": "string"
}
}, - "destinationCurrency": "string",
- "destinationAddress": "string",
- "amountToWithdraw": "string",
- "paymentCryptoAddress": "string",
- "cryptoAmount": "string",
- "cryptoCurrencyShortName": "string",
- "cryptoCurrencyFullName": "string",
- "cryptoNetworkFee": "string",
- "tracking": "string",
- "qrCodeData": "string",
- "cryptoCurrency": "string",
- "promoCode": "string",
- "walletCurrency": "string",
- "currencyName": "string",
- "currencyCode": "string",
- "currencyLogoUrl": "string",
- "network": "string",
- "networkCode": "string",
- "networkLogoUrl": "string",
- "fundsAvailability": "string",
- "captureMode": "string"
}, - "customer": {
- "id": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "firstName": "John",
- "lastName": "Doe",
- "phone": 48000000000,
- "ip": "127.0.0.1"
}, - "cardInfo": {
- "merchantCardToken": "string",
- "bank": "Cool bank",
- "country": "DE",
- "organization": "visa",
- "organizationBrand": "debit gold",
- "token": "b5507016-7da2-4777-a161-1e8042a6a377",
- "segment": "CSG_ZEN",
- "lastFourDigits": 5516,
- "expirationDate": "2018-08-08T00:00:00.000Z",
- "bin": 557516
}, - "billingAddress": {
- "id": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "firstName": "John",
- "lastName": "Doe",
- "country": "DE",
- "street": "Poloninska",
- "city": "Warsaw",
- "countryState": "Utah",
- "province": "Alberta",
- "buildingNumber": "12",
- "roomNumber": "5",
- "postcode": "31-137",
- "companyName": "Mega Corp Inc.",
- "phone": "48000000000",
- "taxId": "123-45-67-890"
}, - "shippingAddress": {
- "id": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "firstName": "John",
- "lastName": "Doe",
- "country": "DE",
- "street": "Poloninska",
- "city": "Warsaw",
- "countryState": "Utah",
- "province": "Alberta",
- "buildingNumber": "12",
- "roomNumber": "5",
- "postcode": "31-137",
- "companyName": "Mega Corp Inc.",
- "phone": "48000000000"
}, - "items": [
- {
- "code": "IDS123",
- "category": "cars",
- "name": "Multipla",
- "price": "123.04",
- "quantity": 1,
- "lineAmountTotal": "123.04"
}
], - "verifyReturnmac": "7e92079c-79e1-47bd-af9d-80c2f7783037",
- "cashback": {
- "active": false,
- "values": [
- {
- "type": "PERCENT",
- "value": "string"
}
], - "client": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "string",
- "tenantId": 101,
- "email": "[email protected]"
}
}
}
Creates new authorization attempt on the same TRX transaction in case of expired or rejected previous authorization
request-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:\_\|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. Unique identifier generated by requesting client |
terminal-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:_|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. An unique Terminal ID |
comment | string or null <= 512 characters |
transactionId required | string <uuid> Transaction ID generated during create transaction process |
merchantTransactionId required | string [ 1 .. 128 ] characters ^[a-zA-Z0-9?&:\-\/=.,#]+$ ID of transaction provided by merchant |
required | object |
{- "comment": "string",
- "transactionId": "75906707-8c31-479c-b354-aa805c4cefbc",
- "merchantTransactionId": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "paymentSpecificData": {
- "type": "blik",
- "ticket": "777111"
}
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantAction": {
- "action": "REDIRECT",
}, - "merchantTransactionId": "string",
- "amount": "123.04",
- "currency": "PLN",
- "fee": {
- "amount": "123.04",
- "currency": "EUR"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "type": "TRT_REFUND",
- "status": "AUTHORIZED",
- "paymentChannel": "PCL_CARD",
- "actions": {
- "refund": false,
- "cancel": false,
- "capture": true,
- "redirect": true,
- "authorization": true
}, - "fraudFields": {
- "fingerPrintId": "string",
- "channel": "PTS_CHECKOUT",
}, - "rejectCode": "E40199",
- "rejectReason": "Client doesn't have enough money.",
- "refunds": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantTransactionId": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "amount": "123.04",
- "currency": "PLN",
- "createdAt": "2019-08-24T14:15:22Z",
- "status": "AUTHORIZED"
}
], - "meta": {
- "payoutBtcAddress": "1HB5XDDddDDdDDDj6mfBsbifRoD4miY36v",
- "btcAmount": "10",
- "feeOwner": "partner",
- "avsResult": "string",
- "cvvResult": "string",
- "authorisationCode": "string",
- "resultCode": "string",
- "threeDs": {
- "xid": "string",
- "version": "string",
- "eci": "string",
- "cavv": "string",
- "cavvAlgorithm": "string"
}, - "destinationCurrency": "string",
- "destinationAddress": "string",
- "amountToWithdraw": "string",
- "paymentCryptoAddress": "string",
- "cryptoAmount": "string",
- "cryptoCurrencyShortName": "string",
- "cryptoCurrencyFullName": "string",
- "qrCodeData": "string",
- "cryptoCurrency": "string"
}, - "customer": {
- "id": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "firstName": "John",
- "lastName": "Doe",
- "phone": 48000000000,
- "ip": "127.0.0.1"
}, - "cardInfo": {
- "merchantCardToken": "string",
- "bank": "Cool bank",
- "country": "DE",
- "organization": "visa",
- "organizationBrand": "debit gold",
- "token": "b5507016-7da2-4777-a161-1e8042a6a377",
- "segment": "CSG_ZEN",
- "lastFourDigits": 5516,
- "expirationDate": "2018-08-08T00:00:00.000Z",
- "bin": 557516
}, - "billingAddress": {
- "id": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "firstName": "John",
- "lastName": "Doe",
- "country": "DE",
- "street": "Poloninska",
- "city": "Warsaw",
- "countryState": "Utah",
- "province": "Alberta",
- "buildingNumber": "12",
- "roomNumber": "5",
- "postcode": "31-137",
- "companyName": "Mega Corp Inc.",
- "phone": "48000000000",
- "taxId": "123-45-67-890"
}, - "shippingAddress": {
- "id": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "firstName": "John",
- "lastName": "Doe",
- "country": "DE",
- "street": "Poloninska",
- "city": "Warsaw",
- "countryState": "Utah",
- "province": "Alberta",
- "buildingNumber": "12",
- "roomNumber": "5",
- "postcode": "31-137",
- "companyName": "Mega Corp Inc.",
- "phone": "48000000000"
}, - "items": [
- {
- "code": "IDS123",
- "category": "cars",
- "name": "Multipla",
- "price": "123.04",
- "quantity": 1,
- "lineAmountTotal": "123.04"
}
], - "verifyReturnmac": "7e92079c-79e1-47bd-af9d-80c2f7783037",
- "cashback": {
- "active": false,
- "values": [
- {
- "type": "PERCENT",
- "value": "string"
}
], - "client": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "string",
- "tenantId": 101,
- "email": "[email protected]"
}
}
}
Removes saved card
itemsPerPage | string^[1-9][0-9]*$ Default: "10" Limit of results |
page | string^[1-9][0-9]*$ Default: "1" Page of results |
direction | string Default: "asc" Enum: "asc" "desc" Direction of order |
sortBy | string Default: "createdAt" Value: "createdAt" column sorting |
request-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:_|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. A unique identifier generated by requesting client |
terminal-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:_|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. An unique Terminal ID |
extended | string = 1 characters Return data with Meta |
external-customer-id | string A customer identifier from merchant system |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantId": "string",
- "shopId": "string",
- "terminalId": "string",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "firstTransactionId": "03056aca-c5f2-4f6b-a174-27e4af663155",
- "cpsCardId": "string",
- "cardName": "string",
- "cardHolderName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressCity": "string",
- "addressCountry": "string",
- "addressState": "string",
- "addressZip": "string",
- "organization": "string",
- "brand": "string",
- "bank": "string",
- "country": "str",
- "tokenizationMethod": "apple_pay",
- "last4": "stri",
- "expMonth": "st",
- "expYear": "stri",
- "verificationStatus": "st",
- "verificationDate": "st",
- "status": "verified",
- "isDefault": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "string"
}
], - "meta": {
- "itemsPerPage": "10",
- "page": "1",
- "direction": "asc",
- "sortBy": "createdAt"
}
}
Removes saved card
id required | string <uuid> Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 An unique identifier |
request-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:_|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. A unique identifier generated by requesting client |
terminal-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:_|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. An unique Terminal ID |
external-customer-id | string A customer identifier from merchant system |
{- "success": true
}
Fetch saved card
id required | string <uuid> Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 An unique identifier |
request-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:_|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. A unique identifier generated by requesting client |
terminal-id required | string [ 3 .. 128 ] characters ^[a-zA-Z0-9\-]+$ Example: ABC1234 ID of the ZEN terminal |
external-customer-id | string A customer identifier from merchant system |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantId": "string",
- "shopId": "string",
- "terminalId": "string",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "firstTransactionId": "03056aca-c5f2-4f6b-a174-27e4af663155",
- "cpsCardId": "string",
- "cardName": "string",
- "cardHolderName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressCity": "string",
- "addressCountry": "string",
- "addressState": "string",
- "addressZip": "string",
- "organization": "string",
- "brand": "string",
- "bank": "string",
- "country": "str",
- "tokenizationMethod": "apple_pay",
- "last4": "stri",
- "expMonth": "st",
- "expYear": "stri",
- "verificationStatus": "st",
- "verificationDate": "st",
- "status": "verified",
- "isDefault": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "string"
}
Update details for credit card
id required | string <uuid> Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 An unique identifier |
request-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:_|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. A unique identifier generated by requesting client |
terminal-id required | string [ 3 .. 128 ] characters ^[a-zA-Z0-9\-]+$ Example: ABC1234 ID of the ZEN terminal |
external-customer-id | string A customer identifier from merchant system |
Card object that needs to be added to the database
cardName | string or null <= 128 characters |
cardHolderName | string or null <= 128 characters |
addressLine1 | string or null <= 128 characters |
addressLine2 | string or null <= 128 characters |
addressCity | string or null <= 128 characters |
addressCountry | string or null <= 32 characters |
addressState | string or null <= 32 characters |
addressZip | string or null <= 16 characters |
expMonth | string [ 1 .. 2 ] characters |
expYear | string [ 1 .. 4 ] characters |
isDefault | boolean |
{- "cardName": "string",
- "cardHolderName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressCity": "string",
- "addressCountry": "string",
- "addressState": "string",
- "addressZip": "string",
- "expMonth": "st",
- "expYear": "stri",
- "isDefault": true
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantTransactionId": "string",
- "shopId": "string",
- "terminalId": "string",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "firstTransactionId": "03056aca-c5f2-4f6b-a174-27e4af663155",
- "cpsCardId": "string",
- "cardName": "string",
- "cardHolderName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressCity": "string",
- "addressCountry": "string",
- "addressState": "string",
- "addressZip": "string",
- "organization": "string",
- "brand": "string",
- "bank": "string",
- "country": "str",
- "tokenizationMethod": "apple_pay",
- "last4": "stri",
- "expMonth": "st",
- "expYear": "stri",
- "verificationStatus": "st",
- "verificationDate": "st",
- "status": "verified",
- "isDefault": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "string"
}
Create customer
request-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:_|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. A unique identifier generated by requesting client |
terminal-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:_|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. An unique Terminal ID |
merchantCustomerId required | string [ 1 .. 128 ] characters |
id | string [ 1 .. 128 ] characters |
firstName | string or null <= 128 characters |
lastName | string or null <= 128 characters |
userName | string or null <= 128 characters |
description | string or null <= 256 characters |
string or null <email> |
{- "merchantCustomerId": "string",
- "id": "string",
- "firstName": "string",
- "lastName": "string",
- "userName": "string",
- "description": "string",
- "email": "[email protected]"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantId": "string",
- "status": "new",
- "firstName": "string",
- "lastName": "string",
- "userName": "string",
- "description": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
Fetch saved subscription customer list
itemsPerPage | string^[1-9][0-9]*$ Default: "10" Limit of results |
page | string^[1-9][0-9]*$ Default: "1" Page of results |
direction | string Default: "asc" Enum: "asc" "desc" Direction of order |
sortBy | string Default: "createdAt" Value: "createdAt" column sorting |
request-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:_|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. A unique identifier generated by requesting client |
terminal-id required | string [ 3 .. 128 ] characters ^[a-zA-Z0-9\-]+$ Example: ABC1234 ID of the ZEN terminal |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "new",
- "firstName": "string",
- "lastName": "string",
- "userName": "string",
- "description": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "meta": {
- "itemsPerPage": "10",
- "page": "1",
- "direction": "asc",
- "sortBy": "createdAt"
}
}
Fetch saved subscription customer by customer external id
merchantCustomerId required | string <uuid> Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 An unique customer external identifier |
request-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:_|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. A unique identifier generated by requesting client |
terminal-id required | string [ 3 .. 128 ] characters ^[a-zA-Z0-9\-]+$ Example: ABC1234 ID of the ZEN terminal |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantId": "string",
- "status": "new",
- "firstName": "string",
- "lastName": "string",
- "userName": "string",
- "description": "string",
- "email": null,
- "createdAt": "2019-08-24T14:15:22Z"
}
Update saved subscription customer
merchantCustomerId required | string <uuid> Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 An unique customer external identifier |
request-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:_|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. A unique identifier generated by requesting client |
terminal-id required | string [ 3 .. 128 ] characters ^[a-zA-Z0-9\-]+$ Example: ABC1234 ID of the ZEN terminal |
Customer object that needs to be added to the database
id | string <uuid> |
merchantId | string [ 1 .. 32 ] characters |
status | string Enum: "new" "confirmed" |
firstName | string or null <= 128 characters |
lastName | string or null <= 128 characters |
userName | string or null <= 128 characters |
description | string or null <= 256 characters |
string or null <email> |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantId": "string",
- "status": "new",
- "firstName": "string",
- "lastName": "string",
- "userName": "string",
- "description": "string",
- "email": "[email protected]"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "new",
- "firstName": "string",
- "lastName": "string",
- "userName": "string",
- "description": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
Removes saved subscription customer
merchantCustomerId required | string <uuid> Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 An unique customer external identifier |
request-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:_|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. A unique identifier generated by requesting client |
terminal-id required | string [ 3 .. 128 ] characters ^[a-zA-Z0-9\-]+$ Example: ABC1234 ID of the ZEN terminal |
{- "success": true
}
Return saved payout card list V2
itemsPerPage | string^[1-9][0-9]*$ Default: "10" Limit of results |
page | string^[1-9][0-9]*$ Default: "1" Page of results |
direction | string Default: "asc" Enum: "asc" "desc" Direction of order |
sortBy | string Default: "createdAt" Value: "createdAt" column sorting |
request-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:_|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. A unique identifier generated by requesting client |
terminal-id required | string [ 3 .. 128 ] characters ^[a-zA-Z0-9\-]+$ Example: ABC1234 ID of the ZEN terminal |
customer-id | string <uuid> A customer identifier |
external-customer-id | string A customer identifier from merchant system |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "cardName": "string",
- "recipientFirstName": "string",
- "recipientLastName": "string",
- "last4": "stri",
- "fundsAvailability": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "meta": {
- "itemsPerPage": "10",
- "page": "1",
- "direction": "asc",
- "sortBy": "createdAt"
}
}
Add payout card V2
request-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:_|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. A unique identifier generated by requesting client |
terminal-id required | string [ 3 .. 128 ] characters ^[a-zA-Z0-9\-]+$ Example: ABC1234 ID of the ZEN terminal |
customer-id | string <uuid> A customer identifier |
external-customer-id | string A customer identifier from merchant system |
required | object |
{- "card": {
- "number": 4111111111111111,
- "expiryDate": "0620",
- "cvv": 123,
- "recipientFirstName": "string",
- "recipientLastName": "string",
- "cardAlias": "string"
}
}
{- "organization": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "cardName": "string",
- "recipientFirstName": "string",
- "recipientLastName": "string",
- "last4": "stri",
- "fundsAvailability": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Removes saved payout card V2
request-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:_|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. A unique identifier generated by requesting client |
terminal-id required | string [ 3 .. 128 ] characters ^[a-zA-Z0-9\-]+$ Example: ABC1234 ID of the ZEN terminal |
customer-id | string <uuid> A customer identifier |
external-customer-id | string A customer identifier from merchant system |
{- "success": true
}
Create Payout, as result of this we will receive basic informations. Transfer to card transaction is one way transaction.
request-id required | string [ 38 .. 1024 ] characters ^[a-zA-Z0-9?&:_|\-\/=+.,#\s]+$ Example: |us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv. A unique identifier generated by requesting client |
terminal-id required | string [ 3 .. 128 ] characters ^[a-zA-Z0-9\-]+$ Example: ABC1234 ID of the ZEN terminal |
comment | string or null <= 512 characters |
merchantTransactionId required | string [ 1 .. 128 ] characters ^[a-zA-Z0-9?&:\-\/=.,#|+_$\[\]€ ]+$ Id of the transaction provided by merchant. |
originMerchantTransactionId | string [ 1 .. 128 ] characters Origin Id of the transaction provided by merchant. |
paymentChannel required | string^([a-z](-?[a-z0-9])*|[A-Z](_?[A-Z0-9])*)$ Id of the payment channel for selected payment method. Use: PCL_CARD |
amount required | string^(?=.*[0-9])\d{1,16}(?:\.\d{1,12})?$ Amount of the transaction. |
currency required | string = 3 characters ^[A-Z]+$ Currency code in ISO 4217 alphabetic code |
customIpnUrl | string <uri> <= 256 characters URL address used by ZEN to send IPN to example: https://ipn-pay.zen.com/ipn |
required | object |
required | object |
{- "comment": "string",
- "merchantTransactionId": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "originMerchantTransactionId": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "paymentChannel": "PCL_CARD",
- "amount": "123.04",
- "currency": "PLN",
- "customer": {
- "id": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "ip": "127.0.0.1"
}, - "paymentSpecificData": {
- "type": "cardpayout",
- "cardToken": "27a4c23c-29bb-4244-9867-0f39ecb51045",
- "descriptor": "string",
- "transactionPurpose": "00",
- "recipient": {
- "firstName": "Jane",
- "lastName": "Smith"
}, - "recipientAddress": {
- "line1": "1 Main St",
- "line2": "Apartment 9",
- "city": "OFallon",
- "countrySubdivision": "MO",
- "postCode": "63368",
- "country": "US"
}
}
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "parentTransactionId": "f8033cf6-befa-47f4-a48a-b915b8c72a71",
- "merchantTransactionId": "string",
- "originMerchantTransactionId": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "amount": "123.04",
- "currency": "PLN",
- "fee": {
- "amount": "123.04",
- "currency": "EUR"
}, - "authorization": {
- "amount": "string",
- "currency": "string",
- "fee": "string"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "type": "TRT_REFUND",
- "status": "ACCEPTED",
- "paymentChannel": "PCL_CARD",
- "actions": {
- "refund": false,
- "cancel": false,
- "capture": true,
- "redirect": true,
- "authorization": true
}, - "rejectCode": "E40199",
- "rejectReason": "Client doesn't have enough money.",
- "meta": {
- "authorisationCode": "string",
- "resultCode": "string"
}, - "customer": {
- "id": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
- "IP": "127.0.0.1"
}, - "cardInfo": {
- "merchantCardToken": "string",
- "bank": "Cool bank",
- "country": "DE",
- "organization": "visa",
- "organizationBrand": "debit gold",
- "token": "b5507016-7da2-4777-a161-1e8042a6a377",
- "segment": "CSG_INDIVIDUAL",
- "type": "CDT_DEBIT",
- "lastFourDigits": 5516,
- "expirationDate": "2018-08-08T00:00:00.000Z",
- "bin": 557516,
- "eea": true,
- "commercial": true
}, - "source": {
- "channel": "PTS_ZEN_API",
- "pluginName": "string",
- "pluginVersion": "string",
- "platformName": "string",
- "platformVersion": "string"
}
}