Calculate authorization amount
POST
/v1/authorization/calculateAuthorization parameter is used in a couple of processes in ZEN. In this case for authorization fee process (allows to charging of transaction costs to the customer) and DCC (dynamic currency change) process.
To use authorizationfee parameter Merchant has to have feature activated. Then, it is possible to display the commission amount on the checkout, which will be charged to the customer for processing the transaction. The amount charged to the customer (added to the base transaction amount) will be returned to the Merchant. The parameter authorizationfee does not exclude charging the fee to the Merchant for processing the transaction.
It is possible to set authorizationfee parameter for one, some or all payment channels.
Request
A unique identifier generated by requesting client
Transaction types
Payment method name from dictionary PME_PAYMENT_METHOD
Payment method channel name from dictionary PCL_PAYMENT_CHANNEL
Organization name from dictionary COR_VISA (Required if paymentChannel = PCL_CARD)
{
"merchantTransactionId": "string",
"amount": "string",
"currency": "string",
"authorizationCurrency": "string",
"transactionType": "TRT_PURCHASE",
"ip": "127.0.0.1",
"data": [
{
"paymentMethod": "PME_CARD",
"paymentChannel": "PCL_CARD",
"cardOrganization": "COR_VISA",
"cardBin": "string",
"cardId": "f16ba382-eb42-481a-b08f-c57bdc9aae24"
}
]
}
Request samples
Responses
[
{
"paymentMethod": "string",
"maxFee": "string",
"channels": [
{
"paymentChannel": "string",
"cardOrganizations": [
{
"organization": "string",
"authorization": {
"fee": "string",
"amount": "string",
"baseAmount": "string",
"currency": "string",
"rate": "string",
"rateExpireAt": "string"
}
}
],
"authorization": {
"fee": "string",
"amount": "string",
"baseAmount": "string",
"currency": "string",
"rate": "string",
"rateExpireAt": "string"
}
}
]
}
]