Get Commissions for Transaction history
As we know for getting Transactions history we get Transaction entity from BM. And In the Transaction entity has two fields
systemCommissionDownAmount, systemCommissionUpAmount
These are amount of commissions.
But In Commission V2 we have commission's parts also.
ex: 10000 UZS commission splitted into parts 5000 UZS for UZCARD and 5000 UZS for Bank income.
So we can not get these parts with Transaction. So we have new TranCommission entity for saving Commission of Transaction.

This is commission of transaction's history.
About fields.
TotalAmount - total amount of commission ex: 5000 UZS
TotalAmountInPercent - total amount of commission in percent ex: 0.5%
Participant - This commission is SENDER or RECEPIENT.
TransactionId - Id of Transaction
CommissionParts - Commission parts as json array
For getting transaction's commission parts you need transactionId and participant(SENDER or RECIPIENT)
Getting Transaction commission by tarnsaction id and participant SENDER or RECIPIENT
GET
/api/tran-commissions-by-tranId-and-participant
This returns List of Transaction commission
Query Parameters
tranId*
Long
Transaction Id
participant*
String
Participant SENDER or RECIPIENT
For getting Transaction's commission with transaction id
Getting Transaction commissions by Transaction Id
GET
/api/tran-commissions-by-tranId/{tranId}
Path Parameters
tranId*
Long
Id of Transaction
Last updated