Calculate the charges
post
/service/v1/charges
This endpoint is used to calculate the charges based on given parameters.
Request
Supported Media Types
- application/json
- application/xml
Header Parameters
-
appId(required): string
Application Id
-
branchCode(required): string
Branch Code
-
userId(required): string
User Id
Request Body For Charge Calculation
Root Schema : ChargeCalculationRequestDto
Type:
Show Source
object
-
applicationCode:
string
-
extPrcConsumerService:
string
Consumer Service Name
-
txnDetails:
array txnDetails
Nested Schema : TransactionDetailsRequestDto
Type:
Show Source
object
-
priceMethods:
array priceMethods
Details of each charge to be calculated
-
txnAttributes:
array txnAttributes
-
txnRefNo:
string
Nested Schema : ChargeCalculationDetails
Type:
Show Source
object
-
charge:
number
Charge
-
chargeCategory:
string
Charge Category
-
chargeCode:
string
Charge Code
-
chargeCodeDesc:
string
Charge Code Description
-
chargeCriteria:
string
Amount/Count on which charge needs to be calculated. e.g. FINANCE_AMOUNT, INVOICE_COUNT
-
chargeCriteriaValue:
number
Amount/Count Value on which charge needs to be calculated
-
chargeGroup:
string
Charge Group
-
chargeSharing:
string
Flag to indicate if charge sharing is available
-
chargeSharingPct:
number
Percentage of charge which will be charged to the given party
-
chargeType:
string
Charge Type
-
exchangeRate:
number
Exchange Rate
-
externalPricingApplicable:
string
External Pricing Applicable
-
externalPricingConsumerService:
string
External Pricing Consumer Service
-
externalPricingSystem:
string
External Pricing System
-
isChargeCalculated:
string
Is Charge Calculated
-
parentChargeCode:
string
Parent Charge Code
-
partyId:
string
Party Id which needs to be charged
-
partyToCharge:
string
Party which needs to be charged
-
priceRuleId:
string
Pricing Rule Id
-
slabDetails:
array slabDetails
Slab details needs to be provided when price category is tier based
-
slidingScaleTenor:
number
Period for sliding scale
-
tenor:
number
Period for which charge will be calculated
-
txnCcy:
string
Transaction currency. It should be sent when chargeInTxnCcy is Y
Nested Schema : slabDetails
Type:
array
Slab details needs to be provided when price category is tier based
Show Source
Nested Schema : SlabDetails
Type:
Show Source
object
-
amount:
number
Amount
-
fromSlab:
number
From Slab
-
percentage:
number
Percentage
-
toSlab:
number
To Slab
-
unit:
number
Unit
Response
Supported Media Types
- application/json
- application/xml
200 Response
Calculated charges
Nested Schema : TransactionDetailsResponseDto
Type:
Show Source
object
-
chargeDetails:
array chargeDetails
Collection of calculated charges
-
txnRefNo:
string
Nested Schema : ChargesDetails
Type:
Show Source
object
-
charge:
number
Calculated charge amount
-
chargeCcy:
string
Currency in which charge is calculated
-
chargeCode:
string
Charge Code
-
chargeSharing:
string
Charge Sharing
-
exchangeRate:
number
Exchange rate will be provided if charge is calculated in transaction currency
-
externalCharge:
string
Party Id which needs to be charged
-
maxChgAmount:
number
Maximum Charge Amount
-
maxChgPct:
number
Maximum Charge Percentage
-
minChgAmount:
number
Minimum Charge Amount
-
minChgPct:
number
Minimum Charge Percentage
-
minMaxValidationCriteria:
string
Min-Max Charge Criteria
-
partyId:
string
Party Id which needs to be charged
-
partyToCharge:
string
Party which needs to be charged
-
priceMethod:
string
Price method which will be used to calculate charge
-
priceRuleId:
string
Pricing Rule Id
400 Response
Malformed syntax.
401 Response
Request does not have sufficient credentials.
403 Response
Request is not authorized.
500 Response
Internal error