UAPAY - національний платіжний сервіс

Calculation of the commission amount (Сommission calculate)

A method for obtaining information about the fee for a given payment amount (commission calculate).

URI

POST api/payments/p2p/commission/calculate


Request:

Key

Description

Type

Obligated

Example

Key

Description

Type

Obligated

Example

params









sessionId

client session id

string

yes

"f22b8709-18c9-40e1-a4fa-77aa5b524fc6"

amount

payment amount in kopecks

number

yes

2000

paymentType

type of payment, it can be: DIRECT, BUCKET, C2A or A2C, if it is not specified, it will be DIRECT/BUCKET (the commission is the same for them)

string

no

"BUCKET"

 

Request examples 

{ "params": { "sessionId": "527c6427-89f9-4462-8913-66b89985831d", "amount": 10000 } }

or

{ "params": { "sessionId": "527c6427-89f9-4462-8913-66b89985831d", "amount": 10000, "paymentType": "C2A" } }

Response:

Key

Description

Type

Example

Key

Description

Type

Example

status

Status. 0 - err, 1 - success

integer

1

data







commissionAmount

The amount of the commission is in kopecks

integer

115

amount

Amount of the payment body

integer

909

inFeeCommission

Internal commission data

 

 

percents

Commission percentage

integer

10

fixed

Commission rate

integer

200

minCommission

Minimum commission amount

integer

100

clientCommission

External commission data

 

 

percents

Commission percentage

integer

10

fixed

Commission rate

integer

200

minCommission

Minimum commission amount

integer

100

paymentSystemSurcharge

Additional commissions of the MPS

 

 

mastercard

MPS Mastercard

 

 

percents

Commission percentage

integer

10

fixed

Commission rate

integer

200

visa

MPS Visa

 

 

percents

Commission percentage

integer

10

fixed

Commission rate

integer

200

commissionTypes

Amounts of the commission on the MPS

 

 

mastercard

Mastercard fee amount

integer

200

visa

Visa fee amount

integer

200


Example answer

{ "status": 1, "data": { "commissionAmount": 1091, "inFeeCommission": [ { "percents": 10, "fixed": 200, "minCommission": 200 } ], "amount": 8909 } }

UAPAY - національний платіжний сервіс
pay@uapay.ua